summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcompletionsupport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/cppcompletionsupport.cpp')
-rw-r--r--src/plugins/cpptools/cppcompletionsupport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppcompletionsupport.cpp b/src/plugins/cpptools/cppcompletionsupport.cpp
index e68073fcee..30c2d8c363 100644
--- a/src/plugins/cpptools/cppcompletionsupport.cpp
+++ b/src/plugins/cpptools/cppcompletionsupport.cpp
@@ -35,7 +35,7 @@
#include "cppmodelmanager.h"
#include "cpptoolseditorsupport.h"
-#include <coreplugin/ifile.h>
+#include <coreplugin/idocument.h>
#include <projectexplorer/project.h>
#include <texteditor/codeassist/iassistinterface.h>
@@ -64,7 +64,7 @@ TextEditor::IAssistInterface *CppCompletionSupport::createAssistInterface(Projec
return new CppTools::Internal::CppCompletionAssistInterface(
document,
position,
- m_editorSupport->textEditor()->file(),
+ m_editorSupport->textEditor()->document(),
reason,
modelManager->snapshot(),
includePaths,