# HG changeset patch # User Sebastien Jodogne # Date 1423584660 -3600 # Node ID 536515f87cb405be3d751d02ba740fbb28137a3e # Parent 7b6925b0890d12b4f6b89a97e7b797766d655be5 cppcheck diff -r 7b6925b0890d -r 536515f87cb4 OrthancServer/ServerIndex.cpp --- 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(last); }