Commit 0afed96f authored by dt's avatar dt
Browse files

Fix warning about unused variable

parent 0ce35585
...@@ -536,7 +536,7 @@ Qt4ProFileNode::~Qt4ProFileNode() ...@@ -536,7 +536,7 @@ Qt4ProFileNode::~Qt4ProFileNode()
void Qt4ProFileNode::buildStateChanged(ProjectExplorer::Project *project) void Qt4ProFileNode::buildStateChanged(ProjectExplorer::Project *project)
{ {
if (project == m_project && !ProjectExplorer::ProjectExplorerPlugin::instance()->buildManager()->isBuilding(m_project)) if (project == m_project && !ProjectExplorer::ProjectExplorerPlugin::instance()->buildManager()->isBuilding(m_project))
updateUiFiles(m_project->buildDirectory(m_project->activeBuildConfiguration())); updateUiFiles();
} }
bool Qt4ProFileNode::hasTargets() const bool Qt4ProFileNode::hasTargets() const
...@@ -707,7 +707,7 @@ void Qt4ProFileNode::update() ...@@ -707,7 +707,7 @@ void Qt4ProFileNode::update()
emit qt4Watcher->variablesChanged(this, m_varValues, newVarValues); emit qt4Watcher->variablesChanged(this, m_varValues, newVarValues);
} }
updateUiFiles(m_project->buildDirectory(m_project->activeBuildConfiguration())); updateUiFiles();
foreach (NodesWatcher *watcher, watchers()) foreach (NodesWatcher *watcher, watchers())
if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher)) if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
...@@ -741,7 +741,7 @@ namespace { ...@@ -741,7 +741,7 @@ namespace {
// It does so by storing a modification time for each ui file we know about. // 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 // 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 // Only those two project types can have ui files for us
if (m_projectType != ApplicationTemplate if (m_projectType != ApplicationTemplate
......
...@@ -186,10 +186,10 @@ public slots: ...@@ -186,10 +186,10 @@ public slots:
void scheduleUpdate(); void scheduleUpdate();
void update(); void update();
private slots: private slots:
void updateUiFiles(const QString& buildConfiguration);
void buildStateChanged(ProjectExplorer::Project*); void buildStateChanged(ProjectExplorer::Project*);
private: private:
void updateUiFiles();
Qt4ProFileNode *createSubProFileNode(const QString &path); Qt4ProFileNode *createSubProFileNode(const QString &path);
QStringList uiDirPaths(ProFileReader *reader) const; QStringList uiDirPaths(ProFileReader *reader) const;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment