From 71cff0702ba9b6916a2fc3c106872d822b87610d Mon Sep 17 00:00:00 2001
From: dt <qtc-committer@nokia.com>
Date: Thu, 23 Apr 2009 14:23:30 +0200
Subject: [PATCH] Refactroring: Small change to make the function more
 readeable

---
 src/plugins/projectexplorer/qtversionmanager.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/plugins/projectexplorer/qtversionmanager.cpp b/src/plugins/projectexplorer/qtversionmanager.cpp
index e46d6472c2c..dae9faddca4 100644
--- a/src/plugins/projectexplorer/qtversionmanager.cpp
+++ b/src/plugins/projectexplorer/qtversionmanager.cpp
@@ -476,7 +476,6 @@ void QtVersion::updateSourcePath()
 // QtVersion *QtVersionManager::qtVersionForDirectory(const QString directory);
 QString QtVersionManager::findQtVersionFromMakefile(const QString &directory)
 {
-    QString result = QString::null;
     bool debugAdding = false;
     QFile makefile(directory + "/Makefile" );
     if (makefile.exists() && makefile.open(QFile::ReadOnly)) {
@@ -492,14 +491,12 @@ QString QtVersionManager::findQtVersionFromMakefile(const QString &directory)
                 QString qtDir = binDir.absolutePath();
                 if (debugAdding)
                     qDebug() << "#~~ QtDir:"<<qtDir;
-                // Now we have the qtDir
-                // look through the qtversions wheter we already have that qt version setup
                 return qtDir;
             }
         }
         makefile.close();
     }
-    return result;
+    return QString::null;
 }
 
 QtVersion *QtVersionManager::qtVersionForDirectory(const QString &directory)
-- 
GitLab