Remove some needless ProjectExplorer::

... and use ProjectExplorerPlugin::instance() directly in some places
where a variable was defined for it and used exactly once.

No code change.

Change-Id: I095fc80ac29f717eaabf13afa90c3bf6d9daf90a
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Tobias Hunger
2014-05-02 17:02:28 +02:00
parent 8d5e4b32a8
commit 0814cc112a
7 changed files with 8 additions and 11 deletions

View File

@@ -140,7 +140,7 @@ void QmakeManager::addLibrary()
void QmakeManager::addLibraryContextMenu()
{
ProjectExplorer::Node *node = ProjectExplorer::ProjectExplorerPlugin::instance()->currentNode();
ProjectExplorer::Node *node = ProjectExplorerPlugin::instance()->currentNode();
if (qobject_cast<QmakeProFileNode *>(node))
addLibrary(node->path());
}
@@ -183,7 +183,7 @@ void QmakeManager::runQMakeContextMenu()
void QmakeManager::runQMake(ProjectExplorer::Project *p, ProjectExplorer::Node *node)
{
if (!ProjectExplorer::ProjectExplorerPlugin::instance()->saveModifiedFiles())
if (!ProjectExplorerPlugin::instance()->saveModifiedFiles())
return;
QmakeProject *qmakeProject = qobject_cast<QmakeProject *>(p);
QTC_ASSERT(qmakeProject, return);