summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-09-23 10:55:40 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-09-23 15:44:25 +0200
commitf64753362edf6c22879b1f39e83de1f69b8dda77 (patch)
tree573e292f6837929006701fcaf64398cb177c1790 /tools
parent061f4976c7a3f9ac86ccd289ee93fc64182de27d (diff)
downloadqt4-tools-f64753362edf6c22879b1f39e83de1f69b8dda77.tar.gz
simplify
Diffstat (limited to 'tools')
-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 6c56a5659a..9b7fdc86f9 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)