summaryrefslogtreecommitdiffstats
path: root/tools/linguist
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-09-23 08:55:40 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-09-23 13:44:25 (GMT)
commitf64753362edf6c22879b1f39e83de1f69b8dda77 (patch)
tree573e292f6837929006701fcaf64398cb177c1790 /tools/linguist
parent061f4976c7a3f9ac86ccd289ee93fc64182de27d (diff)
downloadQt-f64753362edf6c22879b1f39e83de1f69b8dda77.zip
Qt-f64753362edf6c22879b1f39e83de1f69b8dda77.tar.gz
Qt-f64753362edf6c22879b1f39e83de1f69b8dda77.tar.bz2
simplify
Diffstat (limited to 'tools/linguist')
-rw-r--r--tools/linguist/lupdate/cpp.cpp5
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)