# HG changeset patch # User Sebastien Jodogne # Date 1414063106 -7200 # Node ID 669bb978d52e7cea011c34e03a0c661d9c3ab17a # Parent d49505e377e3dc1cbcf1b271535fc6b3b0da3c8d rename diff -r d49505e377e3 -r 669bb978d52e OrthancServer/ServerIndex.cpp --- a/OrthancServer/ServerIndex.cpp Thu Sep 25 17:50:06 2014 +0200 +++ b/OrthancServer/ServerIndex.cpp Thu Oct 23 13:18:26 2014 +0200 @@ -82,7 +82,7 @@ } }; - struct Change + struct ServerIndexChange { private: ChangeType changeType_; @@ -90,7 +90,7 @@ std::string publicId_; public: - Change(ChangeType changeType, + ServerIndexChange(ChangeType changeType, ResourceType resourceType, const std::string& publicId) : changeType_(changeType), @@ -120,7 +120,7 @@ ResourceType remainingType_; std::string remainingPublicId_; std::list pendingFilesToRemove_; - std::list pendingChanges_; + std::list pendingChanges_; uint64_t sizeOfFilesToRemove_; bool insideTransaction_; @@ -170,7 +170,7 @@ void CommitChanges() { - for (std::list::const_iterator + for (std::list::const_iterator it = pendingChanges_.begin(); it != pendingChanges_.end(); it++) { @@ -215,7 +215,7 @@ if (insideTransaction_) { - pendingChanges_.push_back(Change(changeType, resourceType, publicId)); + pendingChanges_.push_back(ServerIndexChange(changeType, resourceType, publicId)); } else {