comparison OrthancFramework/Sources/Toolbox.h @ 4941:96a3e81eba90 more-tags

performance warning
author Alain Mazy <am@osimis.io>
date Wed, 16 Mar 2022 09:50:33 +0100
parents f630796a59b1
children d0c34145320c
comparison
equal deleted inserted replaced
4940:304514ce84ee 4941:96a3e81eba90
232 { 232 {
233 target.insert(*it); 233 target.insert(*it);
234 } 234 }
235 } 235 }
236 236
237 template <typename T> static void RemoveSets(std::set<T>& target, const std::set<T>& toRemove)
238 {
239 for (typename std::set<T>::const_iterator it = toRemove.begin();
240 it != toRemove.end(); it++)
241 {
242 target.erase(*it);
243 }
244 }
237 245
238 #if ORTHANC_ENABLE_PUGIXML == 1 246 #if ORTHANC_ENABLE_PUGIXML == 1
239 static void JsonToXml(std::string& target, 247 static void JsonToXml(std::string& target,
240 const Json::Value& source, 248 const Json::Value& source,
241 const std::string& rootElement = "root", 249 const std::string& rootElement = "root",