summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/taskhub.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2013-08-01 14:16:10 +0200
committerhjk <hjk121@nokiamail.com>2013-08-02 12:06:32 +0200
commitd0eb10582b7397ceb43e95d4c7af95ad5c4e074c (patch)
tree6c99e20b73946f54475f89101292ca4924bfbc07 /src/plugins/projectexplorer/taskhub.cpp
parentf5afaac0704e2e51d055c74079b3c5bee5d63a6b (diff)
downloadqt-creator-d0eb10582b7397ceb43e95d4c7af95ad5c4e074c.tar.gz
TaskHub: De-noise user code
Change-Id: Ieb559e884fb08c96d739cf7684389ff740a6233e Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/taskhub.cpp')
-rw-r--r--src/plugins/projectexplorer/taskhub.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/projectexplorer/taskhub.cpp b/src/plugins/projectexplorer/taskhub.cpp
index eb7272db09..6af9516115 100644
--- a/src/plugins/projectexplorer/taskhub.cpp
+++ b/src/plugins/projectexplorer/taskhub.cpp
@@ -54,19 +54,19 @@ private:
void TaskMark::updateLineNumber(int lineNumber)
{
- ProjectExplorerPlugin::instance()->taskHub()->updateTaskLineNumber(m_id, lineNumber);
+ ProjectExplorerPlugin::taskHub()->updateTaskLineNumber(m_id, lineNumber);
BaseTextMark::updateLineNumber(lineNumber);
}
void TaskMark::updateFileName(const QString &fileName)
{
- ProjectExplorerPlugin::instance()->taskHub()->updateTaskFileName(m_id, fileName);
+ ProjectExplorerPlugin::taskHub()->updateTaskFileName(m_id, fileName);
BaseTextMark::updateFileName(fileName);
}
void TaskMark::removedFromEditor()
{
- ProjectExplorerPlugin::instance()->taskHub()->updateTaskLineNumber(m_id, -1);
+ ProjectExplorerPlugin::taskHub()->updateTaskLineNumber(m_id, -1);
}
bool TaskMark::isClickable() const
@@ -76,7 +76,7 @@ bool TaskMark::isClickable() const
void TaskMark::clicked()
{
- ProjectExplorerPlugin::instance()->taskHub()->taskMarkClicked(m_id);
+ ProjectExplorerPlugin::taskHub()->taskMarkClicked(m_id);
}
TaskHub::TaskHub()
@@ -92,7 +92,7 @@ TaskHub::~TaskHub()
}
-void TaskHub::addCategory(const Core::Id &categoryId, const QString &displayName, bool visible)
+void TaskHub::addCategory(Core::Id categoryId, const QString &displayName, bool visible)
{
emit categoryAdded(categoryId, displayName, visible);
}
@@ -112,7 +112,7 @@ void TaskHub::addTask(Task task)
}
}
-void TaskHub::clearTasks(const Core::Id &categoryId)
+void TaskHub::clearTasks(Core::Id categoryId)
{
emit tasksCleared(categoryId);
}