diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-03-25 20:05:25 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-03-27 11:08:34 (GMT) |
commit | 32798196d81439fa77b34425b95eb47556aebc8d (patch) | |
tree | 6bcddfd59c81ead53b78251394b3b349c2539495 /tools/linguist/shared/qm.cpp | |
parent | 39c52d840cd1ba3bf988937f4f9c9a9cdba57bfc (diff) | |
download | Qt-32798196d81439fa77b34425b95eb47556aebc8d.zip Qt-32798196d81439fa77b34425b95eb47556aebc8d.tar.gz Qt-32798196d81439fa77b34425b95eb47556aebc8d.tar.bz2 |
micro-optimization: don't evaluate same condition twice
Diffstat (limited to 'tools/linguist/shared/qm.cpp')
-rw-r--r-- | tools/linguist/shared/qm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/linguist/shared/qm.cpp b/tools/linguist/shared/qm.cpp index 1534e3f..4627b5d 100644 --- a/tools/linguist/shared/qm.cpp +++ b/tools/linguist/shared/qm.cpp @@ -650,6 +650,8 @@ static bool saveQM(const Translator &translator, QIODevice &dev, ConversionData ++untranslated; continue; } else { + if (cd.ignoreUnfinished()) + continue; ++unfinished; } } else { @@ -660,7 +662,6 @@ static bool saveQM(const Translator &translator, QIODevice &dev, ConversionData QString comment = msg.comment(); QStringList translations = msg.translations(); - if (!cd.ignoreUnfinished() || typ != TranslatorMessage::Unfinished) { /* Drop the comment in (context, sourceText, comment), unless the context is empty, @@ -680,7 +681,6 @@ static bool saveQM(const Translator &translator, QIODevice &dev, ConversionData //filename and lineNumbers will be ignored from now. releaser.insert(tm); } - } } } |