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:
@@ -185,7 +185,7 @@ void Qt4Manager::editorAboutToClose(Core::IEditor *editor)
|
||||
void Qt4Manager::updateVariable(const QByteArray &variable)
|
||||
{
|
||||
if (variable == kInstallBins) {
|
||||
Qt4Project *qt4pro = qobject_cast<Qt4Project *>(projectExplorer()->currentProject());
|
||||
Qt4Project *qt4pro = qobject_cast<Qt4Project *>(ProjectExplorer::ProjectExplorerPlugin::currentProject());
|
||||
if (!qt4pro) {
|
||||
Core::VariableManager::instance()->remove(kInstallBins);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user