summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@theqtcompany.com>2015-01-08 12:52:17 +0100
committerTim Jenssen <tim.jenssen@theqtcompany.com>2015-01-09 14:19:36 +0200
commit96205e28fe901abb714c1e9a05a02d0131f578cb (patch)
treea4f77eba427cd12269daaf7542648c3ae110c7ea
parent35939ac40275621240bb4d708802a934b3bd4c65 (diff)
downloadqt-creator-96205e28fe901abb714c1e9a05a02d0131f578cb.tar.gz
fix warning that "pep" is initialized but not referenced
Change-Id: I1f12323e1de481f800fcf835a12213059b72bfd4 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
-rw-r--r--plugins/autotest/testrunner.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/autotest/testrunner.cpp b/plugins/autotest/testrunner.cpp
index fc5646f331..e687b03fe7 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 *>(
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)