mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
fix: sonarcloud (#2868)
* refactor: make this variable const * refactor: replace redundant type with auto * refactor: use the nullptr literal * refactor: replace declaration by structured binding declaration
This commit is contained in:
@@ -393,7 +393,7 @@ auto const ChildHiddenKey = Glib::Quark("gtr-child-hidden");
|
||||
void gtr_widget_set_visible(Gtk::Widget& w, bool b)
|
||||
{
|
||||
/* toggle the transient children, too */
|
||||
if (auto* const window = dynamic_cast<Gtk::Window*>(&w); window != nullptr)
|
||||
if (auto const* const window = dynamic_cast<Gtk::Window*>(&w); window != nullptr)
|
||||
{
|
||||
for (auto* const l : Gtk::Window::list_toplevels())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user