# HG changeset patch # User Alain Mazy # Date 1677013424 -3600 # Node ID de7a639c5ad2006c4a0d2b086b0686e99018ab3a # Parent 90bf30eba69865fabbe28dc7db479427dc86ae1d fix constness diff -r 90bf30eba698 -r de7a639c5ad2 OrthancFramework/Sources/Toolbox.cpp --- a/OrthancFramework/Sources/Toolbox.cpp Wed Feb 15 05:27:16 2023 +0100 +++ b/OrthancFramework/Sources/Toolbox.cpp Tue Feb 21 22:03:44 2023 +0100 @@ -1055,15 +1055,15 @@ void Toolbox::JoinStrings(std::string& result, - std::set& source, + const std::set& source, const char* separator) { result = boost::algorithm::join(source, separator); } - void JoinStrings(std::string& result, - std::vector& source, - const char* separator) + void Toolbox::JoinStrings(std::string& result, + const std::vector& source, + const char* separator) { result = boost::algorithm::join(source, separator); } diff -r 90bf30eba698 -r de7a639c5ad2 OrthancFramework/Sources/Toolbox.h --- a/OrthancFramework/Sources/Toolbox.h Wed Feb 15 05:27:16 2023 +0100 +++ b/OrthancFramework/Sources/Toolbox.h Tue Feb 21 22:03:44 2023 +0100 @@ -188,11 +188,11 @@ char separator); static void JoinStrings(std::string& result, - std::set& source, + const std::set& source, const char* separator); static void JoinStrings(std::string& result, - std::vector& source, + const std::vector& source, const char* separator); // returns true if all element of 'needles' are found in 'haystack'