summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2014-11-24 11:19:41 +0100
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-01-14 12:33:15 +0100
commit4d3d0e02903e28388937cb602b6e2255feef0385 (patch)
tree43f8340413fdc057c20d17b3de38810e2791777c /src/plugins/cppeditor/cppcodemodelinspectordialog.cpp
parent845cb2e432c73712d27a96dc3765a539b13a195f (diff)
downloadqt-creator-4d3d0e02903e28388937cb602b6e2255feef0385.tar.gz
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>
Diffstat (limited to 'src/plugins/cppeditor/cppcodemodelinspectordialog.cpp')
-rw-r--r--src/plugins/cppeditor/cppcodemodelinspectordialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp b/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp
index d3469606bc..8663b71615 100644
--- a/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp
+++ b/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp
@@ -1362,10 +1362,10 @@ void CppCodeModelInspectorDialog::refresh()
dumper.dumpSnapshot(globalSnapshot, globalSnapshotTitle, /*isGlobalSnapshot=*/ true);
TextEditor::BaseTextEditor *editor = currentEditor();
- EditorDocumentHandle *editorDocument = 0;
+ CppEditorDocumentHandle *cppEditorDocument = 0;
if (editor) {
const QString editorFilePath = editor->document()->filePath().toString();
- editorDocument = cmmi->editorDocument(editorFilePath);
+ cppEditorDocument = cmmi->cppEditorDocument(editorFilePath);
if (auto *documentProcessor = BaseEditorDocumentProcessor::get(editorFilePath)) {
const CPlusPlus::Snapshot editorSnapshot = documentProcessor->snapshot();
m_snapshotInfos->append(SnapshotInfo(editorSnapshot, SnapshotInfo::EditorSnapshot));
@@ -1416,8 +1416,8 @@ void CppCodeModelInspectorDialog::refresh()
onSnapshotSelected(snapshotIndex);
// Project Parts
- const ProjectPart::Ptr editorsProjectPart = editorDocument
- ? editorDocument->processor()->parser()->projectPart()
+ const ProjectPart::Ptr editorsProjectPart = cppEditorDocument
+ ? cppEditorDocument->processor()->parser()->projectPart()
: ProjectPart::Ptr();
const QList<ProjectInfo> projectInfos = cmmi->projectInfos();