# HG changeset patch # User Alain Mazy # Date 1786525309 -7200 # Node ID ce8dfabee759e88bf85a6972c338228a336b87c8 # Parent 0fedfdc07684e670cc7800acf60539024eebcd6a clang-tidy diff -r 0fedfdc07684 -r ce8dfabee759 OrthancFramework/Sources/DataSource/DataSourceAnswer.cpp --- a/OrthancFramework/Sources/DataSource/DataSourceAnswer.cpp Wed Aug 12 10:44:33 2026 +0200 +++ b/OrthancFramework/Sources/DataSource/DataSourceAnswer.cpp Wed Aug 12 11:01:49 2026 +0200 @@ -54,7 +54,7 @@ DataSourceAnswer::Item::Item(IDataIdentifier* id /* takes ownership */, const OrthancException& error) : id_(id), - error_(new OrthancException(error)), + error_(new OrthancException(error)), // NOLINT(bugprone-throw-keyword-missing) memorySize_(0) { if (id == NULL) diff -r 0fedfdc07684 -r ce8dfabee759 OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp --- a/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp Wed Aug 12 10:44:33 2026 +0200 +++ b/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp Wed Aug 12 11:01:49 2026 +0200 @@ -4006,7 +4006,7 @@ Uint64 f; if (content.getUint64(f, i).good()) { - values.push_back(f); + values.push_back(static_cast(f)); if (static_cast(values.back()) != f) { diff -r 0fedfdc07684 -r ce8dfabee759 OrthancFramework/Sources/Logging.cpp --- a/OrthancFramework/Sources/Logging.cpp Wed Aug 12 10:44:33 2026 +0200 +++ b/OrthancFramework/Sources/Logging.cpp Wed Aug 12 11:01:49 2026 +0200 @@ -1573,7 +1573,7 @@ { (*it)->HandleLog(level_, category_, pluginName_, file_, line_, messageStream_.str()); } - catch (...) + catch (...) // NOLINT(bugprone-empty-catch) { // Don't throw in destructors } diff -r 0fedfdc07684 -r ce8dfabee759 OrthancServer/Plugins/Engine/OrthancPlugins.cpp --- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Wed Aug 12 10:44:33 2026 +0200 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Wed Aug 12 11:01:49 2026 +0200 @@ -2581,7 +2581,7 @@ cgroups_.resize(what.size() - 1); for (size_t i = 1; i < what.size(); i++) { - groups_[i - 1] = what[i]; + groups_[i - 1] = what[static_cast(i)]; cgroups_[i - 1] = groups_[i - 1].c_str(); } }