]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/util/string.h
Fix various copy instead of const ref reported by cppcheck (part 3) (#5616)
[dragonfireclient.git] / src / util / string.h
index 1a0b9f60d2782513bfa283455ed42506170a04cd..632dd4d7e785fe7ceaa1f7f47049dd2395d69b88 100644 (file)
@@ -232,7 +232,7 @@ inline std::vector<std::basic_string<T> > str_split(
  */
 inline std::string lowercase(const std::string &str)
 {
-       std::string s2;
+       std::string s2 = "";
 
        s2.reserve(str.size());