aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/valgrind/callgrindtool.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2012-01-24 18:57:39 +0100
committerhjk <[email protected]>2012-01-24 19:20:13 +0100
commitb0b105d5758e85d08057edc2e914a7f2060bfe3f (patch)
tree1206d80383fd6e4b53673f901dec224c38a824f5 /src/plugins/valgrind/callgrindtool.cpp
parentecd9f3c4395b099c3d38c4762427fbd822888e9c (diff)
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 <[email protected]>
Diffstat (limited to 'src/plugins/valgrind/callgrindtool.cpp')
-rw-r--r--src/plugins/valgrind/callgrindtool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp
index f3ecd8a2405..57fdecb5cfb 100644
--- a/src/plugins/valgrind/callgrindtool.cpp
+++ b/src/plugins/valgrind/callgrindtool.cpp
@@ -398,8 +398,7 @@ void CallgrindToolPrivate::updateCostFormat()
void CallgrindToolPrivate::handleFilterProjectCosts()
{
- ProjectExplorer::ProjectExplorerPlugin *pe = ProjectExplorer::ProjectExplorerPlugin::instance();
- ProjectExplorer::Project *pro = pe->currentProject();
+ ProjectExplorer::Project *pro = ProjectExplorer::ProjectExplorerPlugin::currentProject();
QTC_ASSERT(pro, return)
if (m_filterProjectCosts->isChecked()) {