From 96205e28fe901abb714c1e9a05a02d0131f578cb Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Thu, 8 Jan 2015 12:52:17 +0100 Subject: [PATCH] fix warning that "pep" is initialized but not referenced Change-Id: I1f12323e1de481f800fcf835a12213059b72bfd4 Reviewed-by: Christian Stenger --- plugins/autotest/testrunner.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/autotest/testrunner.cpp b/plugins/autotest/testrunner.cpp index fc5646f3311..e687b03fe7e 100644 --- a/plugins/autotest/testrunner.cpp +++ b/plugins/autotest/testrunner.cpp @@ -468,8 +468,8 @@ void TestRunner::runTests() return; } - ProjectExplorer::ProjectExplorerPlugin *pep = ProjectExplorer::ProjectExplorerPlugin::instance(); - ProjectExplorer::Internal::ProjectExplorerSettings pes = pep->projectExplorerSettings(); + ProjectExplorer::Internal::ProjectExplorerSettings pes = + ProjectExplorer::ProjectExplorerPlugin::projectExplorerSettings(); if (pes.buildBeforeDeploy) { if (!project->hasActiveBuildSettings()) { TestResultsPane::instance()->addTestResult(FaultyTestResult(ResultType::MESSAGE_FATAL, @@ -507,10 +507,9 @@ void TestRunner::buildProject(ProjectExplorer::Project *project) m_buildSucceeded = false; ProjectExplorer::BuildManager *mgr = static_cast( ProjectExplorer::BuildManager::instance()); - ProjectExplorer::ProjectExplorerPlugin *pep = ProjectExplorer::ProjectExplorerPlugin::instance(); connect(mgr, &ProjectExplorer::BuildManager::buildQueueFinished, this, &TestRunner::buildFinished); - pep->buildProject(project); + ProjectExplorer::ProjectExplorerPlugin::buildProject(project); } void TestRunner::buildFinished(bool success)