modernize: Use auto where the type is clear from context
[quassel.git] / src / qtui / settingspages / itemviewsettingspage.cpp
index 61a2e4b..0a51f4a 100644 (file)
@@ -62,7 +62,7 @@ void ItemViewSettingsPage::save()
 
 void ItemViewSettingsPage::updateBufferViewPreview(QWidget *widget)
 {
-    ColorButton *button = qobject_cast<ColorButton *>(widget);
+    auto *button = qobject_cast<ColorButton *>(widget);
     if (!button)
         return;