forked from qt-creator/qt-creator
Core: Change IEditor::document() to const
All the implementations are const. Change-Id: Ib9753fe764dd482d4f4392eec70878d42edc737a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
4b42789bda
commit
1486359251
@@ -274,7 +274,7 @@ Core::IEditor *DiffEditor::duplicate()
|
||||
return editor;
|
||||
}
|
||||
|
||||
Core::IDocument *DiffEditor::document()
|
||||
Core::IDocument *DiffEditor::document() const
|
||||
{
|
||||
return m_document.data();
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
~DiffEditor() override;
|
||||
|
||||
Core::IEditor *duplicate() override;
|
||||
Core::IDocument *document() override;
|
||||
Core::IDocument *document() const override;
|
||||
QWidget *toolBar() override;
|
||||
TextEditor::TextEditorWidget *descriptionWidget() const;
|
||||
TextEditor::TextEditorWidget *unifiedEditorWidget() const;
|
||||
|
||||
Reference in New Issue
Block a user