From 0afed96f290785057c253882a9b1b1492f50bf5f Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Fri, 3 Apr 2009 17:45:18 +0200 Subject: [PATCH] Fix warning about unused variable --- src/plugins/qt4projectmanager/qt4nodes.cpp | 6 +++--- src/plugins/qt4projectmanager/qt4nodes.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp index 8dc7d2bfb09..66c32661c35 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.cpp +++ b/src/plugins/qt4projectmanager/qt4nodes.cpp @@ -536,7 +536,7 @@ Qt4ProFileNode::~Qt4ProFileNode() void Qt4ProFileNode::buildStateChanged(ProjectExplorer::Project *project) { if (project == m_project && !ProjectExplorer::ProjectExplorerPlugin::instance()->buildManager()->isBuilding(m_project)) - updateUiFiles(m_project->buildDirectory(m_project->activeBuildConfiguration())); + updateUiFiles(); } bool Qt4ProFileNode::hasTargets() const @@ -707,7 +707,7 @@ void Qt4ProFileNode::update() emit qt4Watcher->variablesChanged(this, m_varValues, newVarValues); } - updateUiFiles(m_project->buildDirectory(m_project->activeBuildConfiguration())); + updateUiFiles(); foreach (NodesWatcher *watcher, watchers()) if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher)) @@ -741,7 +741,7 @@ namespace { // It does so by storing a modification time for each ui file we know about. // TODO this function should also be called if the build directory is changed -void Qt4ProFileNode::updateUiFiles(const QString &buildDirectory) +void Qt4ProFileNode::updateUiFiles() { // Only those two project types can have ui files for us if (m_projectType != ApplicationTemplate diff --git a/src/plugins/qt4projectmanager/qt4nodes.h b/src/plugins/qt4projectmanager/qt4nodes.h index 4e95ac4b8a6..6da10fd9f47 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.h +++ b/src/plugins/qt4projectmanager/qt4nodes.h @@ -186,10 +186,10 @@ public slots: void scheduleUpdate(); void update(); private slots: - void updateUiFiles(const QString& buildConfiguration); void buildStateChanged(ProjectExplorer::Project*); private: + void updateUiFiles(); Qt4ProFileNode *createSubProFileNode(const QString &path); QStringList uiDirPaths(ProFileReader *reader) const; -- GitLab