modernize: Use auto where the type is clear from context
[quassel.git] / src / client / messagefilter.cpp
index 578f340..fd6e78b 100644 (file)
@@ -245,7 +245,7 @@ bool MessageFilter::filterAcceptsRow(int sourceRow, const QModelIndex &sourcePar
         }
 
         // Mark query as having a quit message inserted
-        MessageFilter *that = const_cast<MessageFilter *>(this);
+        auto *that = const_cast<MessageFilter *>(this);
         that->_filteredQuitMsgTime.insert(messageTimestamp);
         return true;
     }