From ee0328ba37ff8d637dd9e2283ee271453bdf6bce Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 23 Apr 2015 07:13:08 +0200 Subject: [PATCH] Fix strreplace, fixes snapshot and dtd issue (nw) --- src/lib/util/corestr.c | 2 +- src/lib/util/corestr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/util/corestr.c b/src/lib/util/corestr.c index 84feda50939..7e42e235065 100644 --- a/src/lib/util/corestr.c +++ b/src/lib/util/corestr.c @@ -300,7 +300,7 @@ std::string strmakelower(std::string& str) return str; } -int strreplace(std::string str, const std::string& search, const std::string& replace) +int strreplace(std::string &str, const std::string& search, const std::string& replace) { int searchlen = search.length(); int replacelen = replace.length(); diff --git a/src/lib/util/corestr.h b/src/lib/util/corestr.h index b875b25db02..519e1edc849 100644 --- a/src/lib/util/corestr.h +++ b/src/lib/util/corestr.h @@ -75,6 +75,6 @@ void strreplacechr(std::string& str, char ch, char newch); std::string strtrimspace(std::string& str); std::string strmakeupper(std::string& str); std::string strmakelower(std::string& str); -int strreplace(std::string str, const std::string& search, const std::string& replace); +int strreplace(std::string &str, const std::string& search, const std::string& replace); #endif /* __CORESTR_H__ */