From c6a983d27179ebd26e692918e58d44aa77fc7f8a Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 21 Dec 2014 21:54:30 +0200 Subject: Core: Use FileName for file path in IDocument Change-Id: I85f7398aee59d0d36f0e5c3bf88ff3c96002e394 Reviewed-by: Eike Ziller --- src/plugins/cpptools/cppmodelmanager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/plugins/cpptools/cppmodelmanager.cpp') diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index a2c263ee0a..7568a32e7c 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -699,7 +699,7 @@ void CppModelManager::updateCppEditorDocuments() const QSet visibleCppEditorDocuments; foreach (Core::IEditor *editor, Core::EditorManager::visibleEditors()) { if (Core::IDocument *document = editor->document()) { - if (EditorDocumentHandle *cppEditorDocument = editorDocument(document->filePath())) { + if (EditorDocumentHandle *cppEditorDocument = editorDocument(document->filePath().toString())) { visibleCppEditorDocuments.insert(document); cppEditorDocument->processor()->run(); } @@ -711,7 +711,7 @@ void CppModelManager::updateCppEditorDocuments() const = Core::DocumentModel::openedDocuments().toSet(); invisibleCppEditorDocuments.subtract(visibleCppEditorDocuments); foreach (Core::IDocument *document, invisibleCppEditorDocuments) { - if (EditorDocumentHandle *cppEditorDocument = editorDocument(document->filePath())) + if (EditorDocumentHandle *cppEditorDocument = editorDocument(document->filePath().toString())) cppEditorDocument->setNeedsRefresh(true); } } @@ -887,7 +887,8 @@ void CppModelManager::onCurrentEditorChanged(Core::IEditor *editor) if (!editor || !editor->document()) return; - if (EditorDocumentHandle *cppEditorDocument = editorDocument(editor->document()->filePath())) { + if (EditorDocumentHandle *cppEditorDocument = + editorDocument(editor->document()->filePath().toString())) { if (cppEditorDocument->needsRefresh()) { cppEditorDocument->setNeedsRefresh(false); cppEditorDocument->processor()->run(); -- cgit v1.2.1