projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
modernize: Use auto where the type is clear from context
[quassel.git]
/
src
/
core
/
postgresqlstorage.cpp
diff --git
a/src/core/postgresqlstorage.cpp
b/src/core/postgresqlstorage.cpp
index
6b97104
..
c414b87
100644
(file)
--- a/
src/core/postgresqlstorage.cpp
+++ b/
src/core/postgresqlstorage.cpp
@@
-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;