mirror of https://github.com/kiwix/libkiwix.git
Make appendToFirstOccurence take argument by reference.
This commit is contained in:
parent
656bf183b7
commit
e56335109c
|
@ -27,7 +27,7 @@ std::string replaceRegex(const std::string& content,
|
||||||
const std::string& replacement,
|
const std::string& replacement,
|
||||||
const std::string& regex);
|
const std::string& regex);
|
||||||
std::string appendToFirstOccurence(const std::string& content,
|
std::string appendToFirstOccurence(const std::string& content,
|
||||||
const std::string regex,
|
const std::string& regex,
|
||||||
const std::string& replacement);
|
const std::string& replacement);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -76,7 +76,7 @@ std::string replaceRegex(const std::string& content,
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string appendToFirstOccurence(const std::string& content,
|
std::string appendToFirstOccurence(const std::string& content,
|
||||||
const std::string regex,
|
const std::string& regex,
|
||||||
const std::string& replacement)
|
const std::string& replacement)
|
||||||
{
|
{
|
||||||
ucnv_setDefaultName("UTF-8");
|
ucnv_setDefaultName("UTF-8");
|
||||||
|
|
Loading…
Reference in New Issue