diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-09-23 08:55:40 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-09-23 13:44:25 (GMT) |
commit | f64753362edf6c22879b1f39e83de1f69b8dda77 (patch) | |
tree | 573e292f6837929006701fcaf64398cb177c1790 /tools/linguist | |
parent | 061f4976c7a3f9ac86ccd289ee93fc64182de27d (diff) | |
download | Qt-f64753362edf6c22879b1f39e83de1f69b8dda77.zip Qt-f64753362edf6c22879b1f39e83de1f69b8dda77.tar.gz Qt-f64753362edf6c22879b1f39e83de1f69b8dda77.tar.bz2 |
simplify
Diffstat (limited to 'tools/linguist')
-rw-r--r-- | tools/linguist/lupdate/cpp.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/linguist/lupdate/cpp.cpp b/tools/linguist/lupdate/cpp.cpp index 6c56a56..9b7fdc8 100644 --- a/tools/linguist/lupdate/cpp.cpp +++ b/tools/linguist/lupdate/cpp.cpp @@ -1056,10 +1056,7 @@ QSet<QString> &CppFiles::blacklistedFiles() const ParseResults *CppFiles::getResults(const QString &cleanFile) { - ParseResultHash::ConstIterator it = parsedFiles().find(cleanFile); - if (it == parsedFiles().constEnd()) - return 0; - return *it; + return parsedFiles().value(cleanFile); } void CppFiles::setResults(const QString &cleanFile, const ParseResults *results) |