modernize: Use auto where the type is clear from context
[quassel.git] / src / core / postgresqlstorage.cpp
index 6b97104..c414b87 100644 (file)
@@ -1583,7 +1583,7 @@ int PostgreSqlStorage::highlightCount(BufferId bufferId, MsgId lastSeenMsgId)
     query.bindValue(":lastseenmsgid", lastSeenMsgId.toQint64());
     safeExec(query);
     watchQuery(query);
-    int result = int(0);
+    auto result = int(0);
     if (query.first())
         result = query.value(0).toInt();
     return result;