changeset 1305:536515f87cb4

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Feb 2015 17:11:00 +0100
parents 7b6925b0890d
children 8cd5784a6d80
files OrthancServer/ServerIndex.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Tue Feb 10 17:03:17 2015 +0100
+++ b/OrthancServer/ServerIndex.cpp	Tue Feb 10 17:11:00 2015 +0100
@@ -1104,7 +1104,7 @@
     target[name] = items;
     target["Done"] = done;
 
-    int64_t last = (log.size() == 0 ? since : log.back().GetSeq());
+    int64_t last = (log.empty() ? since : log.back().GetSeq());
     target["Last"] = static_cast<int>(last);
   }