summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-01-08 16:03:29 +0200
committerBlue <bluesansdouze@gmail.com>2010-01-08 23:05:32 +0100
commitc1ddf4c0840bb15016dc69af4a4751d09908393f (patch)
tree26b8f6a28a469a64208eb9f475fb5e26de13b29b /src/utils/stringutils.cpp
parent9b6e5a3189311d5704993d41a1fa195e006a57af (diff)
downloadmana-c1ddf4c0840bb15016dc69af4a4751d09908393f.tar.gz
mana-c1ddf4c0840bb15016dc69af4a4751d09908393f.tar.bz2
mana-c1ddf4c0840bb15016dc69af4a4751d09908393f.tar.xz
mana-c1ddf4c0840bb15016dc69af4a4751d09908393f.zip
Small refactoring in chat auto completing
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 6727dcdf..996be29d 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -146,7 +146,7 @@ bool isWordSeparator(char chr)
return (chr == ' ' || chr == ',' || chr == '.');
}
-const std::string findSameSubstring(std::string &str1, std::string &str2)
+const std::string findSameSubstring(const std::string &str1, const std::string &str2)
{
int minLength = str1.length() > str2.length() ? str2.length() : str1.length();
for (int f = 0; f < minLength; f ++)