summaryrefslogtreecommitdiff
path: root/src/plugins/tasklist/taskfilefactory.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2012-01-24 18:57:39 +0100
committerhjk <qthjk@ovi.com>2012-01-24 19:20:13 +0100
commitb0b105d5758e85d08057edc2e914a7f2060bfe3f (patch)
tree1206d80383fd6e4b53673f901dec224c38a824f5 /src/plugins/tasklist/taskfilefactory.cpp
parentecd9f3c4395b099c3d38c4762427fbd822888e9c (diff)
downloadqt-creator-b0b105d5758e85d08057edc2e914a7f2060bfe3f.tar.gz
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>
Diffstat (limited to 'src/plugins/tasklist/taskfilefactory.cpp')
-rw-r--r--src/plugins/tasklist/taskfilefactory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/tasklist/taskfilefactory.cpp b/src/plugins/tasklist/taskfilefactory.cpp
index d63ed182b1..a0cb3195a9 100644
--- a/src/plugins/tasklist/taskfilefactory.cpp
+++ b/src/plugins/tasklist/taskfilefactory.cpp
@@ -73,8 +73,7 @@ QString TaskFileFactory::displayName() const
Core::IFile *TaskFileFactory::open(const QString &fileName)
{
- ProjectExplorer::Project * context =
- ProjectExplorer::ProjectExplorerPlugin::instance()->currentProject();
+ ProjectExplorer::Project *context = ProjectExplorer::ProjectExplorerPlugin::currentProject();
return open(context, fileName);
}