forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user