Make appendToFirstOccurence take argument by reference.

This commit is contained in:
Matthieu Gautier 2019-08-08 14:28:05 +02:00
parent 656bf183b7
commit e56335109c
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ std::string replaceRegex(const std::string& content,
const std::string& replacement,
const std::string& regex);
std::string appendToFirstOccurence(const std::string& content,
const std::string regex,
const std::string& regex,
const std::string& replacement);
#endif

View File

@ -76,7 +76,7 @@ std::string replaceRegex(const std::string& content,
}
std::string appendToFirstOccurence(const std::string& content,
const std::string regex,
const std::string& regex,
const std::string& replacement)
{
ucnv_setDefaultName("UTF-8");