diff options
Diffstat (limited to 'src/plugins/cpptools/cpppreprocessor.cpp')
-rw-r--r-- | src/plugins/cpptools/cpppreprocessor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cpppreprocessor.cpp b/src/plugins/cpptools/cpppreprocessor.cpp index 649d3d6bc9..417363db3c 100644 --- a/src/plugins/cpptools/cpppreprocessor.cpp +++ b/src/plugins/cpptools/cpppreprocessor.cpp @@ -171,9 +171,8 @@ void CppPreprocessor::getFileContents(const QString &absoluteFilePath, QFile file(absoluteFilePath); if (file.open(QFile::ReadOnly | QFile::Text)) { - QTextCodec *defaultCodec = Core::EditorManager::instance()->defaultTextCodec(); QTextStream stream(&file); - stream.setCodec(defaultCodec); + stream.setCodec(Core::EditorManager::defaultTextCodec()); if (contents) *contents = stream.readAll(); if (revision) |