From 761682b6254a3d43e65ff45e07683c61afa6f1e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Mar 2012 16:54:22 +0300 Subject: Last part of fixes. --- src/utils/translation/translationmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils/translation') 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); -- cgit v1.2.3-70-g09d2