summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 22:44:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 22:44:39 +0300
commita61ac4664d55cddb18d2d861e76629bd07676129 (patch)
tree59f5ba3ff7e65bbe94651db9ad2cf68b847d8f96 /src/utils/stringutils.cpp
parentbb3a85b045a6135f7228023a7ba55fb1c9e6bd90 (diff)
downloadmanaverse-a61ac4664d55cddb18d2d861e76629bd07676129.tar.gz
manaverse-a61ac4664d55cddb18d2d861e76629bd07676129.tar.bz2
manaverse-a61ac4664d55cddb18d2d861e76629bd07676129.tar.xz
manaverse-a61ac4664d55cddb18d2d861e76629bd07676129.zip
Add some missing const.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 041003988..9cc21f23a 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -876,8 +876,8 @@ bool parse2Str(const std::string &args, std::string &str1, std::string &str2)
{
if (pos + 1 < args.length())
{
- str1 = args.substr(0, pos).c_str();
- str2 = args.substr(pos + 1, args.length()).c_str();
+ str1 = args.substr(0, pos);
+ str2 = args.substr(pos + 1, args.length());
isValid = true;
}
}