summaryrefslogtreecommitdiff
path: root/src/utils/translation
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/utils/translation
parenta39f63cdfa5ce15b22f294a8bb1db3a036ce462d (diff)
downloadmanaplus-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.gz
manaplus-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.bz2
manaplus-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.xz
manaplus-761682b6254a3d43e65ff45e07683c61afa6f1e4.zip
Last part of fixes.
Diffstat (limited to 'src/utils/translation')
-rw-r--r--src/utils/translation/translationmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp
index 2a962913a..81fb612e4 100644
--- a/src/utils/translation/translationmanager.cpp
+++ b/src/utils/translation/translationmanager.cpp
@@ -105,13 +105,13 @@ bool TranslationManager::translateFile(const std::string &fileName,
}
std::string str = std::string(fileContents, contentsLength);
- std::string::size_type oldPos1 = 0;
- std::string::size_type pos1;
+ size_t oldPos1 = 0;
+ size_t pos1;
while ((pos1 = str.find("<<")) != std::string::npos)
{
if (pos1 == oldPos1)
break; // detected infinite loop
- std::string::size_type pos2 = str.find(">>", pos1 + 2);
+ size_t pos2 = str.find(">>", pos1 + 2);
if (pos2 == std::string::npos)
break;
const std::string key = str.substr(pos1 + 2, pos2 - pos1 - 2);