summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/corestr.h
diff options
context:
space:
mode:
author npwoods <npwoods@alumni.cmu.edu>2017-09-02 09:09:00 -0400
committer Vas Crabb <cuavas@users.noreply.github.com>2017-09-02 23:09:00 +1000
commitd217e1fbec6dca0c959e7ae9b8e8cd6a86a9e3fb (patch)
treeba7ceb706c972016490250642aedad0ab25102f3 /src/lib/util/corestr.h
parente0c2b67676ed577788f7cd8bc418cf668306fd69 (diff)
Returning a reference from various corestr.cpp calls to avoid unnecessary string copies (#2613)
Diffstat (limited to 'src/lib/util/corestr.h')
-rw-r--r--src/lib/util/corestr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/util/corestr.h b/src/lib/util/corestr.h
index d31c1e5f8df..f4d8d7bed09 100644
--- a/src/lib/util/corestr.h
+++ b/src/lib/util/corestr.h
@@ -66,10 +66,10 @@ int strcatvprintf(std::string &str, const char *format, va_list args);
void strdelchr(std::string& str, char chr);
void strreplacechr(std::string& str, char ch, char newch);
-std::string strtrimspace(std::string& str);
-std::string strtrimrightspace(std::string& str);
-std::string strmakeupper(std::string& str);
-std::string strmakelower(std::string& str);
+std::string &strtrimspace(std::string& str);
+std::string &strtrimrightspace(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);
#endif /* __CORESTR_H__ */