Mercurial > hg > orthanc
diff OrthancServer/Plugins/Samples/MultitenantDicom/MoveRequestHandler.cpp @ 5280:49477780e25a
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 15 Apr 2023 13:07:47 +0200 |
parents | 7cb1b851f5c8 |
children | a8385880902f |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/MultitenantDicom/MoveRequestHandler.cpp Sat Apr 15 10:33:17 2023 +0200 +++ b/OrthancServer/Plugins/Samples/MultitenantDicom/MoveRequestHandler.cpp Sat Apr 15 13:07:47 2023 +0200 @@ -47,12 +47,12 @@ { } - unsigned int GetSubOperationCount() const + virtual unsigned int GetSubOperationCount() const ORTHANC_OVERRIDE { return 1; } - Status DoNext() + virtual Status DoNext() ORTHANC_OVERRIDE { Json::Value answer; @@ -95,15 +95,15 @@ if (OrthancPlugins::RestApiPost(response, "/tools/find", request, false) && response.type() == Json::arrayValue) { - for (Json::Value::ArrayIndex i = 0; i < response.size(); i++) + for (Json::Value::ArrayIndex j = 0; j < response.size(); j++) { - if (response[i].type() != Json::stringValue) + if (response[j].type() != Json::stringValue) { throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); } else { - publicIds.insert(response[i].asString()); + publicIds.insert(response[j].asString()); } } }