From d66acb51d0c8b511df9f679806cbd3d84cce41ef Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 14 Feb 2012 16:43:51 +0100 Subject: Rename IFile->IDocument and FileManager->DocumentManager And adapt the other API respectively. Change-Id: I1e04e555409be09242db6890f9e013396f83aeed Reviewed-by: Bill King Reviewed-by: Eike Ziller --- src/plugins/cpptools/cppmodelmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/cpptools/cppmodelmanager.cpp') diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index 2429265fb6..81e4ca6e0c 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -850,7 +850,7 @@ CppModelManager::WorkingCopy CppModelManager::buildWorkingCopyList() it.next(); TextEditor::ITextEditor *textEditor = it.key(); CppEditorSupport *editorSupport = it.value(); - QString fileName = textEditor->file()->fileName(); + QString fileName = textEditor->document()->fileName(); workingCopy.insert(fileName, editorSupport->contents(), editorSupport->editorRevision()); } @@ -1072,7 +1072,7 @@ void CppModelManager::updateEditor(Document::Ptr doc) QList openedEditors = Core::ICore::editorManager()->openedEditors(); foreach (Core::IEditor *editor, openedEditors) { - if (editor->file()->fileName() == fileName) { + if (editor->document()->fileName() == fileName) { TextEditor::ITextEditor *textEditor = qobject_cast(editor); if (! textEditor) continue; -- cgit v1.2.1