forked from qt-creator/qt-creator
Core: Make IEditor::id a value member and adjust users
Change-Id: I47e457c4a1821c515cd8a740d27bfe005a0c09e6 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -504,6 +504,7 @@ bool handleDoxygenContinuation(QTextCursor &cursor,
|
||||
CPPEditor::CPPEditor(CPPEditorWidget *editor)
|
||||
: BaseTextEditor(editor)
|
||||
{
|
||||
setId(CppEditor::Constants::CPPEDITOR_ID);
|
||||
m_context.add(CppEditor::Constants::C_CPPEDITOR);
|
||||
m_context.add(ProjectExplorer::Constants::LANG_CXX);
|
||||
m_context.add(TextEditor::Constants::C_TEXTEDITOR);
|
||||
@@ -1499,11 +1500,6 @@ Core::IEditor *CPPEditor::duplicate()
|
||||
return newEditor->editor();
|
||||
}
|
||||
|
||||
Core::Id CPPEditor::id() const
|
||||
{
|
||||
return CppEditor::Constants::CPPEDITOR_ID;
|
||||
}
|
||||
|
||||
bool CPPEditor::open(QString *errorString, const QString &fileName, const QString &realFileName)
|
||||
{
|
||||
if (!TextEditor::BaseTextEditor::open(errorString, fileName, realFileName))
|
||||
|
||||
Reference in New Issue
Block a user