Mercurial > hg > orthanc
changeset 5167:de7a639c5ad2
fix constness
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 21 Feb 2023 22:03:44 +0100 |
parents | 90bf30eba698 |
children | 688b83f915bc |
files | OrthancFramework/Sources/Toolbox.cpp OrthancFramework/Sources/Toolbox.h |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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<std::string>& source, + const std::set<std::string>& source, const char* separator) { result = boost::algorithm::join(source, separator); } - void JoinStrings(std::string& result, - std::vector<std::string>& source, - const char* separator) + void Toolbox::JoinStrings(std::string& result, + const std::vector<std::string>& source, + const char* separator) { result = boost::algorithm::join(source, separator); }
--- 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<std::string>& source, + const std::set<std::string>& source, const char* separator); static void JoinStrings(std::string& result, - std::vector<std::string>& source, + const std::vector<std::string>& source, const char* separator); // returns true if all element of 'needles' are found in 'haystack'