diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-08 22:44:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-08 22:44:39 +0300 |
commit | a61ac4664d55cddb18d2d861e76629bd07676129 (patch) | |
tree | 59f5ba3ff7e65bbe94651db9ad2cf68b847d8f96 /src/utils/stringutils.cpp | |
parent | bb3a85b045a6135f7228023a7ba55fb1c9e6bd90 (diff) | |
download | mv-a61ac4664d55cddb18d2d861e76629bd07676129.tar.gz mv-a61ac4664d55cddb18d2d861e76629bd07676129.tar.bz2 mv-a61ac4664d55cddb18d2d861e76629bd07676129.tar.xz mv-a61ac4664d55cddb18d2d861e76629bd07676129.zip |
Add some missing const.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r-- | src/utils/stringutils.cpp | 4 |
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; } } |