Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.cpp @ 1304:7b6925b0890d
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Feb 2015 17:03:17 +0100 |
parents | 919dfb2fb3fe |
children | 536515f87cb4 |
comparison
equal
deleted
inserted
replaced
1303:bba8a47922d1 | 1304:7b6925b0890d |
---|---|
137 | 137 |
138 void CommitChanges() | 138 void CommitChanges() |
139 { | 139 { |
140 for (std::list<ServerIndexChange>::const_iterator | 140 for (std::list<ServerIndexChange>::const_iterator |
141 it = pendingChanges_.begin(); | 141 it = pendingChanges_.begin(); |
142 it != pendingChanges_.end(); it++) | 142 it != pendingChanges_.end(); ++it) |
143 { | 143 { |
144 context_.SignalChange(*it); | 144 context_.SignalChange(*it); |
145 } | 145 } |
146 } | 146 } |
147 | 147 |
1075 db_.GetAllPublicIds(lst, resourceType); | 1075 db_.GetAllPublicIds(lst, resourceType); |
1076 } | 1076 } |
1077 | 1077 |
1078 target = Json::arrayValue; | 1078 target = Json::arrayValue; |
1079 for (std::list<std::string>::const_iterator | 1079 for (std::list<std::string>::const_iterator |
1080 it = lst.begin(); it != lst.end(); it++) | 1080 it = lst.begin(); it != lst.end(); ++it) |
1081 { | 1081 { |
1082 target.append(*it); | 1082 target.append(*it); |
1083 } | 1083 } |
1084 } | 1084 } |
1085 | 1085 |
1091 bool done, | 1091 bool done, |
1092 int64_t since) | 1092 int64_t since) |
1093 { | 1093 { |
1094 Json::Value items = Json::arrayValue; | 1094 Json::Value items = Json::arrayValue; |
1095 for (typename std::list<T>::const_iterator | 1095 for (typename std::list<T>::const_iterator |
1096 it = log.begin(); it != log.end(); it++) | 1096 it = log.begin(); it != log.end(); ++it) |
1097 { | 1097 { |
1098 Json::Value item; | 1098 Json::Value item; |
1099 it->Format(item); | 1099 it->Format(item); |
1100 items.append(item); | 1100 items.append(item); |
1101 } | 1101 } |
2004 | 2004 |
2005 std::list<MetadataType> metadata; | 2005 std::list<MetadataType> metadata; |
2006 db_.ListAvailableMetadata(metadata, id); | 2006 db_.ListAvailableMetadata(metadata, id); |
2007 | 2007 |
2008 for (std::list<MetadataType>::const_iterator | 2008 for (std::list<MetadataType>::const_iterator |
2009 it = metadata.begin(); it != metadata.end(); it++) | 2009 it = metadata.begin(); it != metadata.end(); ++it) |
2010 { | 2010 { |
2011 std::string key = EnumerationToString(*it); | 2011 std::string key = EnumerationToString(*it); |
2012 | 2012 |
2013 std::string value; | 2013 std::string value; |
2014 if (!db_.LookupMetadata(value, id, *it)) | 2014 if (!db_.LookupMetadata(value, id, *it)) |