diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-31 16:54:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-01 03:56:16 +0300 |
commit | 761682b6254a3d43e65ff45e07683c61afa6f1e4 (patch) | |
tree | 2ee462840f3aadb1e96bfa5c6784ec2cc0d2861a /src/being.cpp | |
parent | a39f63cdfa5ce15b22f294a8bb1db3a036ce462d (diff) | |
download | mv-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.gz mv-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.bz2 mv-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.xz mv-761682b6254a3d43e65ff45e07683c61afa6f1e4.zip |
Last part of fixes.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp index 93199024f..75c215992 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -505,8 +505,8 @@ void Being::setSpeech(const std::string &text, int time) time = SPEECH_MIN_TIME; // Check for links - std::string::size_type start = mSpeech.find('['); - std::string::size_type e = mSpeech.find(']', start); + size_t start = mSpeech.find('['); + size_t e = mSpeech.find(']', start); while (start != std::string::npos && e != std::string::npos) { @@ -517,7 +517,7 @@ void Being::setSpeech(const std::string &text, int time) start = mSpeech.find('[', start + 1); } - std::string::size_type position = mSpeech.find('|'); + size_t position = mSpeech.find('|'); if (mSpeech[start + 1] == '@' && mSpeech[start + 2] == '@') { mSpeech.erase(e, 1); |