# HG changeset patch # User Alain Mazy # Date 1702292628 -3600 # Node ID 1474fd6ea6c677b23e5863b9521b07753ed16b2b # Parent d7c9c85d78dc1d4a306413773dd4458155cc8826 CppCheck diff -r d7c9c85d78dc -r 1474fd6ea6c6 OrthancFramework/Sources/Cache/MemoryStringCache.h --- a/OrthancFramework/Sources/Cache/MemoryStringCache.h Fri Dec 08 10:26:53 2023 +0100 +++ b/OrthancFramework/Sources/Cache/MemoryStringCache.h Mon Dec 11 12:03:48 2023 +0100 @@ -59,7 +59,7 @@ public: - Accessor(MemoryStringCache& cache); + explicit Accessor(MemoryStringCache& cache); ~Accessor(); bool Fetch(std::string& value, const std::string& key); diff -r d7c9c85d78dc -r 1474fd6ea6c6 OrthancFramework/Sources/FileStorage/StorageCache.h --- a/OrthancFramework/Sources/FileStorage/StorageCache.h Fri Dec 08 10:26:53 2023 +0100 +++ b/OrthancFramework/Sources/FileStorage/StorageCache.h Mon Dec 11 12:03:48 2023 +0100 @@ -48,7 +48,7 @@ { StorageCache& storageCache_; public: - Accessor(StorageCache& cache); + explicit Accessor(StorageCache& cache); void Add(const std::string& uuid, FileContentType contentType, diff -r d7c9c85d78dc -r 1474fd6ea6c6 OrthancServer/Sources/LuaScripting.cpp --- a/OrthancServer/Sources/LuaScripting.cpp Fri Dec 08 10:26:53 2023 +0100 +++ b/OrthancServer/Sources/LuaScripting.cpp Mon Dec 11 12:03:48 2023 +0100 @@ -245,7 +245,7 @@ JobEvent event_; public: - LuaJobEvent(const JobEvent& event) : + explicit LuaJobEvent(const JobEvent& event) : event_(event) { } diff -r d7c9c85d78dc -r 1474fd6ea6c6 OrthancServer/Sources/Search/ISqlLookupFormatter.cpp --- a/OrthancServer/Sources/Search/ISqlLookupFormatter.cpp Fri Dec 08 10:26:53 2023 +0100 +++ b/OrthancServer/Sources/Search/ISqlLookupFormatter.cpp Mon Dec 11 12:03:48 2023 +0100 @@ -664,7 +664,6 @@ if (mainDicomTagsComparisons.size() > 0) { - std::string comparisons; for (std::vector::const_iterator it = mainDicomTagsComparisons.begin(); it < mainDicomTagsComparisons.end(); ++it) { sql += (" AND internalId IN (SELECT id FROM MainDicomTags WHERE " + *it + ") ");