modernize: Use auto where the type is clear from context
[quassel.git] / src / qtui / chatviewsearchbar.cpp
index 279e0e4..a8d4680 100644 (file)
@@ -43,7 +43,7 @@ ChatViewSearchBar::ChatViewSearchBar(QWidget *parent)
     QAction *toggleSearchBar = coll->action("ToggleSearchBar");
     connect(toggleSearchBar, SIGNAL(toggled(bool)), SLOT(setVisible(bool)));
 
-    Action *hideSearchBar = coll->add<Action>("HideSearchBar", toggleSearchBar, SLOT(setChecked(bool)));
+    auto *hideSearchBar = coll->add<Action>("HideSearchBar", toggleSearchBar, SLOT(setChecked(bool)));
     hideSearchBar->setShortcutConfigurable(false);
     hideSearchBar->setShortcut(Qt::Key_Escape);