Mercurial > hg > orthanc-dicomweb
changeset 399:9b0e7a4b6749
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 04 Mar 2020 09:06:34 +0100 |
parents | 4a8fcfe2bbc7 |
children | 1e19bf059f49 0503e835c77d |
files | Plugin/WadoRs.cpp Plugin/WadoRsRetrieveRendered.cpp Resources/Orthanc/Sdk-1.5.7/orthanc/OrthancCPlugin.h |
diffstat | 3 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugin/WadoRs.cpp Wed Mar 04 08:54:51 2020 +0100 +++ b/Plugin/WadoRs.cpp Wed Mar 04 09:06:34 2020 +0100 @@ -34,7 +34,8 @@ static const char* const MAIN_DICOM_TAGS = "MainDicomTags"; - +static const char* const INSTANCES = "Instances"; +static const char* const PATIENT_MAIN_DICOM_TAGS = "PatientMainDicomTags"; static std::string GetResourceUri(Orthanc::ResourceType level, @@ -336,7 +337,7 @@ std::string maxValue = current->first; size_t maxCount = current->second; - current++; + ++current; while (current != counters.end()) { @@ -346,7 +347,7 @@ maxCount = current->second; } - current++; + ++current; } // Take the ceiling of the number of available instances @@ -380,9 +381,6 @@ const std::string& orthancId, Orthanc::ResourceType level) { - static const char* INSTANCES = "Instances"; - static const char* PATIENT_MAIN_DICOM_TAGS = "PatientMainDicomTags"; - std::string uri; std::string parentField;
--- a/Plugin/WadoRsRetrieveRendered.cpp Wed Mar 04 08:54:51 2020 +0100 +++ b/Plugin/WadoRsRetrieveRendered.cpp Wed Mar 04 09:06:34 2020 +0100 @@ -106,7 +106,7 @@ } public: - RenderingParameters(const OrthancPluginHttpRequest* request) : + explicit RenderingParameters(const OrthancPluginHttpRequest* request) : hasViewport_(false), hasQuality_(false), hasWindowing_(false),
--- a/Resources/Orthanc/Sdk-1.5.7/orthanc/OrthancCPlugin.h Wed Mar 04 08:54:51 2020 +0100 +++ b/Resources/Orthanc/Sdk-1.5.7/orthanc/OrthancCPlugin.h Wed Mar 04 09:06:34 2020 +0100 @@ -77,7 +77,7 @@ * Orthanc - A Lightweight, RESTful DICOM Store * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics * Department, University Hospital of Liege, Belgium - * Copyright (C) 2017-2020 Osimis S.A., Belgium + * Copyright (C) 2017-2019 Osimis S.A., Belgium * * This program is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License as