comparison OrthancServer/ServerIndex.cpp @ 1305:536515f87cb4

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Feb 2015 17:11:00 +0100
parents 7b6925b0890d
children 8cd5784a6d80
comparison
equal deleted inserted replaced
1304:7b6925b0890d 1305:536515f87cb4
1102 1102
1103 target = Json::objectValue; 1103 target = Json::objectValue;
1104 target[name] = items; 1104 target[name] = items;
1105 target["Done"] = done; 1105 target["Done"] = done;
1106 1106
1107 int64_t last = (log.size() == 0 ? since : log.back().GetSeq()); 1107 int64_t last = (log.empty() ? since : log.back().GetSeq());
1108 target["Last"] = static_cast<int>(last); 1108 target["Last"] = static_cast<int>(last);
1109 } 1109 }
1110 1110
1111 1111
1112 void ServerIndex::GetChanges(Json::Value& target, 1112 void ServerIndex::GetChanges(Json::Value& target,