ProjectExplorer: Rename Task::addMark to setMark and make it private

Make TaskHub a friend of Task so that it can still use the method. This
should stop anyone from accidentally calling that.

Change-Id: I36974d0ba874f0cac59b7c57ed667ce2e75e1d4c
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-04-11 13:27:42 +02:00
parent 95ac4edfd4
commit 3bc96dad90
3 changed files with 11 additions and 4 deletions

View File

@@ -83,10 +83,10 @@ Task Task::buildConfigurationMissingTask()
Constants::TASK_CATEGORY_BUILDSYSTEM);
}
void Task::addMark(TextEditor::TextMark *mark)
void Task::setMark(TextEditor::TextMark *mark)
{
QTC_ASSERT(mark, return);
QTC_ASSERT(m_mark.isNull(), return);
m_mark = QSharedPointer<TextEditor::TextMark>(mark);
}