Use more const.

This commit is contained in:
Andreas Jönsson 2015-05-09 08:34:44 +02:00
parent 00c2e09d98
commit c926e18f42
2 changed files with 4 additions and 4 deletions

View File

@ -718,7 +718,7 @@ generic_string stringReplace(generic_string subject, const generic_string& searc
return subject;
}
std::vector<generic_string> stringSplit(const generic_string& input, generic_string delimiter)
std::vector<generic_string> stringSplit(const generic_string& input, const generic_string &delimiter)
{
auto start = 0U;
auto end = input.find(delimiter);
@ -734,7 +734,7 @@ std::vector<generic_string> stringSplit(const generic_string& input, generic_str
return output;
}
generic_string stringJoin(const std::vector<generic_string> &strings, generic_string separator)
generic_string stringJoin(const std::vector<generic_string> &strings, const generic_string &separator)
{
generic_string joined;
size_t length = strings.size();

View File

@ -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<generic_string> stringSplit(const generic_string& input, generic_string delimiter);
generic_string stringJoin(const std::vector<generic_string> &strings, generic_string separator);
std::vector<generic_string> stringSplit(const generic_string& input, const generic_string &delimiter);
generic_string stringJoin(const std::vector<generic_string> &strings, const generic_string &separator);
#endif //M30_IDE_COMMUN_H