diff --git a/PowerEditor/src/MISC/Common/Common.cpp b/PowerEditor/src/MISC/Common/Common.cpp index 9578cf72..1580924c 100644 --- a/PowerEditor/src/MISC/Common/Common.cpp +++ b/PowerEditor/src/MISC/Common/Common.cpp @@ -718,7 +718,7 @@ generic_string stringReplace(generic_string subject, const generic_string& searc return subject; } -std::vector stringSplit(const generic_string& input, generic_string delimiter) +std::vector stringSplit(const generic_string& input, const generic_string &delimiter) { auto start = 0U; auto end = input.find(delimiter); @@ -734,7 +734,7 @@ std::vector stringSplit(const generic_string& input, generic_str return output; } -generic_string stringJoin(const std::vector &strings, generic_string separator) +generic_string stringJoin(const std::vector &strings, const generic_string &separator) { generic_string joined; size_t length = strings.size(); diff --git a/PowerEditor/src/MISC/Common/Common.h b/PowerEditor/src/MISC/Common/Common.h index 43bc0e6a..4176a2ca 100644 --- a/PowerEditor/src/MISC/Common/Common.h +++ b/PowerEditor/src/MISC/Common/Common.h @@ -188,7 +188,7 @@ generic_string PathAppend(generic_string &strDest, const generic_string & str2ap COLORREF getCtrlBgColor(HWND hWnd); generic_string stringToUpper(generic_string strToConvert); generic_string stringReplace(generic_string subject, const generic_string& search, const generic_string& replace); -std::vector stringSplit(const generic_string& input, generic_string delimiter); -generic_string stringJoin(const std::vector &strings, generic_string separator); +std::vector stringSplit(const generic_string& input, const generic_string &delimiter); +generic_string stringJoin(const std::vector &strings, const generic_string &separator); #endif //M30_IDE_COMMUN_H