Use more const.
This commit is contained in:
parent
00c2e09d98
commit
c926e18f42
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user