summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/translation/translationmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp
index 0c20f1392..4c811ab60 100644
--- a/src/utils/translation/translationmanager.cpp
+++ b/src/utils/translation/translationmanager.cpp
@@ -102,8 +102,9 @@ bool TranslationManager::translateFile(const std::string &fileName,
}
std::string str = std::string(fileContents, contentsLength);
- size_t oldPos1 = 0;
+ size_t oldPos1 = std::string::npos;
size_t pos1;
+
while ((pos1 = str.find("<<")) != std::string::npos)
{
if (pos1 == oldPos1)