aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/cpprefactoringchanges.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/cpprefactoringchanges.cpp')
-rw-r--r--src/plugins/cpptools/cpprefactoringchanges.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cpprefactoringchanges.cpp b/src/plugins/cpptools/cpprefactoringchanges.cpp
index d452204756..c05b264730 100644
--- a/src/plugins/cpptools/cpprefactoringchanges.cpp
+++ b/src/plugins/cpptools/cpprefactoringchanges.cpp
@@ -163,10 +163,9 @@ Document::Ptr CppRefactoringFile::cppDocument() const
if (!m_cppDocument || !m_cppDocument->translationUnit() ||
!m_cppDocument->translationUnit()->ast()) {
const QByteArray source = document()->toPlainText().toUtf8();
- const QString name = filePath().toString();
const Snapshot &snapshot = data()->m_snapshot;
- m_cppDocument = snapshot.preprocessedDocument(source, name);
+ m_cppDocument = snapshot.preprocessedDocument(source, filePath());
m_cppDocument->check();
}