forked from qt-creator/qt-creator
ProjectExplorer: make currentProject static
This saves one function call compared to the instance()->currentProject() pattern and is typically less to type on the caller site. Change-Id: I65568f30205fc90e2aaca7e8e7f0192241df8c85 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -499,7 +499,7 @@ public:
|
||||
bool DummyEngine::hasCapability(unsigned cap) const
|
||||
{
|
||||
// This can only be a first approximation of what to expect when running.
|
||||
Project *project = ProjectExplorerPlugin::instance()->currentProject();
|
||||
Project *project = ProjectExplorerPlugin::currentProject();
|
||||
if (!project)
|
||||
return 0;
|
||||
Target *target = project->activeTarget();
|
||||
|
||||
Reference in New Issue
Block a user