OSDN Git Service

C++: Normalize line ending for preprocessing
[qt-creator-jp/qt-creator-jp.git] / src / plugins / cpptools / cppmodelmanager.cpp
index 6856bc1..274d3e2 100644 (file)
@@ -332,7 +332,7 @@ bool CppPreprocessor::includeFile(const QString &absoluteFilePath, QString *resu
         return false;
 
     QFile file(absoluteFilePath);
-    if (file.open(QFile::ReadOnly)) {
+    if (file.open(QFile::ReadOnly | QFile::Text)) {
         m_included.insert(absoluteFilePath);
         QTextStream stream(&file);
         const QString contents = stream.readAll();