diff options
Diffstat (limited to 'src/plugins/cpptools/cpptoolseditorsupport.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolseditorsupport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp index 86efe3bd26..1b73cf883c 100644 --- a/src/plugins/cpptools/cpptoolseditorsupport.cpp +++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp @@ -163,7 +163,7 @@ CppEditorSupport::~CppEditorSupport() QString CppEditorSupport::fileName() const { - return m_textEditor->document()->fileName(); + return m_textEditor->document()->filePath(); } QString CppEditorSupport::contents() const @@ -246,7 +246,7 @@ void CppEditorSupport::updateDocumentNow() if (m_highlightingSupport && !m_highlightingSupport->requiresSemanticInfo()) startHighlighting(); - const QStringList sourceFiles(m_textEditor->document()->fileName()); + const QStringList sourceFiles(m_textEditor->document()->filePath()); m_documentParser = m_modelManager->updateSourceFiles(sourceFiles); } } |