From 49d5cacd3526462f6b8083dae270b7b4ed0afec3 Mon Sep 17 00:00:00 2001
From: Robert Loehning <robert.loehning@nokia.com>
Date: Thu, 27 May 2010 21:23:44 +0200
Subject: [PATCH] Don't call QDirIterator::filePath() twice

---
 src/plugins/texteditor/findinfiles.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/plugins/texteditor/findinfiles.cpp b/src/plugins/texteditor/findinfiles.cpp
index 62b41c25858..e2c28b417f1 100644
--- a/src/plugins/texteditor/findinfiles.cpp
+++ b/src/plugins/texteditor/findinfiles.cpp
@@ -75,10 +75,10 @@ QStringList FindInFiles::files()
                     fileNameFilters(),
                     QDir::Files|QDir::Readable,
                     QDirIterator::Subdirectories);
-    while (it.hasNext()) {
-        it.next();
-        fileList << it.filePath();
-    }
+
+    while (it.hasNext())
+        fileList << it.next();
+
     return fileList;
 }
 
-- 
GitLab