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:
Charles Kerr
2022-04-02 17:42:51 -05:00
committed by GitHub
parent 748d3c2223
commit 76f44b4b6f
27 changed files with 105 additions and 105 deletions

View File

@@ -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())
{