Commit 596e0922 authored by hjk's avatar hjk

CppEditor: rename Internal::CppEditorDocumentHandle

... to avoid name duplication with base class.

Change-Id: I02d104688e068f1ea1f51bf2e5eb43a3fd7aa551
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent fee7cbe5
......@@ -63,17 +63,17 @@ namespace Internal {
enum { processDocumentIntervalInMs = 150 };
class CppEditorDocumentHandle : public CppTools::CppEditorDocumentHandle
class CppEditorDocumentHandleImpl : public CppTools::CppEditorDocumentHandle
{
public:
CppEditorDocumentHandle(CppEditor::Internal::CppEditorDocument *cppEditorDocument)
CppEditorDocumentHandleImpl(CppEditorDocument *cppEditorDocument)
: m_cppEditorDocument(cppEditorDocument)
, m_registrationFilePath(cppEditorDocument->filePath().toString())
{
mm()->registerCppEditorDocument(this);
}
~CppEditorDocumentHandle() { mm()->unregisterCppEditorDocument(m_registrationFilePath); }
~CppEditorDocumentHandleImpl() { mm()->unregisterCppEditorDocument(m_registrationFilePath); }
QString filePath() const { return m_cppEditorDocument->filePath().toString(); }
QByteArray contents() const { return m_cppEditorDocument->contentsText(); }
......@@ -209,7 +209,7 @@ void CppEditorDocument::onFilePathChanged(const Utils::FileName &oldPath,
// Un-Register/Register in ModelManager
m_editorDocumentHandle.reset();
m_editorDocumentHandle.reset(new CppEditorDocumentHandle(this));
m_editorDocumentHandle.reset(new CppEditorDocumentHandleImpl(this));
resetProcessor();
updatePreprocessorSettings();
......
......@@ -49,7 +49,7 @@ class CppEditorDocument : public TextEditor::TextDocument
{
Q_OBJECT
friend class CppEditorDocumentHandle;
friend class CppEditorDocumentHandleImpl;
public:
explicit CppEditorDocument();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment