summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-31 16:54:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-01 03:56:16 +0300
commit761682b6254a3d43e65ff45e07683c61afa6f1e4 (patch)
tree2ee462840f3aadb1e96bfa5c6784ec2cc0d2861a /src/being.cpp
parenta39f63cdfa5ce15b22f294a8bb1db3a036ce462d (diff)
downloadplus-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.gz
plus-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.bz2
plus-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.xz
plus-761682b6254a3d43e65ff45e07683c61afa6f1e4.zip
Last part of fixes.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp6
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);