summaryrefslogtreecommitdiffstats
path: root/tools/linguist/shared/simtexth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/linguist/shared/simtexth.cpp')
-rw-r--r--tools/linguist/shared/simtexth.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/linguist/shared/simtexth.cpp b/tools/linguist/shared/simtexth.cpp
index 31253d6..8933507 100644
--- a/tools/linguist/shared/simtexth.cpp
+++ b/tools/linguist/shared/simtexth.cpp
@@ -238,9 +238,7 @@ CandidateList similarTextHeuristicCandidates(const Translator *tor,
QList<int> scores;
CandidateList candidates;
- TML all = tor->translatedMessages();
-
- foreach (const TranslatorMessage &mtm, all) {
+ foreach (const TranslatorMessage &mtm, tor->messages()) {
if (mtm.type() == TranslatorMessage::Unfinished
|| mtm.translation().isEmpty())
continue;