diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-01-08 16:03:29 +0200 |
---|---|---|
committer | Blue <bluesansdouze@gmail.com> | 2010-01-08 23:05:32 +0100 |
commit | c1ddf4c0840bb15016dc69af4a4751d09908393f (patch) | |
tree | 26b8f6a28a469a64208eb9f475fb5e26de13b29b /src/utils | |
parent | 9b6e5a3189311d5704993d41a1fa195e006a57af (diff) | |
download | mana-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')
-rw-r--r-- | src/utils/stringutils.cpp | 2 | ||||
-rw-r--r-- | src/utils/stringutils.h | 2 |
2 files changed, 2 insertions, 2 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 ++) diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index 4f0138de..2b8cd45c 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -121,6 +121,6 @@ int compareStrI(const std::string &a, const std::string &b); bool isWordSeparator(char chr); -const std::string findSameSubstring(std::string &str1, std::string &str2); +const std::string findSameSubstring(const std::string &str1, const std::string &str2); #endif // UTILS_STRINGUTILS_H |