summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppfindreferences.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2011-05-31 10:58:23 +0200
committerErik Verbruggen <erik.verbruggen@nokia.com>2011-05-31 12:06:27 +0200
commit743b5b74310d396ec45250e6424be49f652d9441 (patch)
tree331d6e094cd64f60c3ee080cd3510ec3dbb256fe /src/plugins/cpptools/cppfindreferences.cpp
parentc29552260c2d81e7e8c154c3560e217cb0e18dd8 (diff)
downloadqt-creator-743b5b74310d396ec45250e6424be49f652d9441.tar.gz
C++ editor: Normalize line endings for find usages
Find usages and related rely on functions that assume \n as line ending. This is true for the preprocessed files, but not for the original sources. Change-Id: I61b7e05c0116504d11c7df4b1aa10d519b705336 Reviewed-on: http://codereview.qt.nokia.com/260 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
-rw-r--r--src/plugins/cpptools/cppfindreferences.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp
index dfc519effd..1d8911f7c6 100644
--- a/src/plugins/cpptools/cppfindreferences.cpp
+++ b/src/plugins/cpptools/cppfindreferences.cpp
@@ -79,7 +79,7 @@ static QString getSource(const QString &fileName,
return workingCopy.source(fileName);
} else {
Utils::FileReader reader;
- if (!reader.fetch(fileName)) // ### FIXME error reporting
+ if (!reader.fetch(fileName, QFile::Text)) // ### FIXME error reporting
return QString();
return QString::fromLocal8Bit(reader.data()); // ### FIXME encoding