forked from qt-creator/qt-creator
Merge ITextMark and BaseTextMark
Turns out we don't even need two-phase initialization, by transparently postponing registration until we get a non-empty file name, either at constuction, or at file name change times. Change-Id: I3e87e47c820066e6707e946fc474ab9c1993e61f Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -91,11 +91,11 @@ Task Task::buildConfigurationMissingTask()
|
||||
ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM);
|
||||
}
|
||||
|
||||
void Task::addMark(TextEditor::BaseTextMark *mark)
|
||||
void Task::addMark(TextEditor::TextMark *mark)
|
||||
{
|
||||
QTC_ASSERT(m_mark.isNull(), return);
|
||||
|
||||
m_mark = QSharedPointer<TextEditor::BaseTextMark>(mark);
|
||||
m_mark = QSharedPointer<TextEditor::TextMark>(mark);
|
||||
}
|
||||
|
||||
bool Task::isNull() const
|
||||
|
||||
Reference in New Issue
Block a user