forked from qt-creator/qt-creator
CppTools: Rename EditorDocumentHandle to CppEditorDocumentHandle
...and related functions. For clarity in client code. Change-Id: Icad6fc7b1eee2ce46a2eba8435359837a23409c8 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
@@ -63,17 +63,17 @@ namespace Internal {
|
||||
|
||||
enum { processDocumentIntervalInMs = 150 };
|
||||
|
||||
class CppEditorDocumentHandle : public CppTools::EditorDocumentHandle
|
||||
class CppEditorDocumentHandle : public CppTools::CppEditorDocumentHandle
|
||||
{
|
||||
public:
|
||||
CppEditorDocumentHandle(CppEditor::Internal::CppEditorDocument *cppEditorDocument)
|
||||
: m_cppEditorDocument(cppEditorDocument)
|
||||
, m_registrationFilePath(cppEditorDocument->filePath().toString())
|
||||
{
|
||||
mm()->registerEditorDocument(this);
|
||||
mm()->registerCppEditorDocument(this);
|
||||
}
|
||||
|
||||
~CppEditorDocumentHandle() { mm()->unregisterEditorDocument(m_registrationFilePath); }
|
||||
~CppEditorDocumentHandle() { mm()->unregisterCppEditorDocument(m_registrationFilePath); }
|
||||
|
||||
QString filePath() const { return m_cppEditorDocument->filePath().toString(); }
|
||||
QByteArray contents() const { return m_cppEditorDocument->contentsText(); }
|
||||
|
||||
Reference in New Issue
Block a user