forked from qt-creator/qt-creator
Utils: filepathify fileutils
Change-Id: Ic9048369f64d793f5f567cdb0c715488fb5a4ff6 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -136,7 +136,7 @@ private:
|
||||
|
||||
Utils::FileReader reader;
|
||||
// Do not use QIODevice::Text as we have to deal with byte offsets.
|
||||
if (reader.fetch(filePath, QIODevice::ReadOnly))
|
||||
if (reader.fetch(Utils::FilePath::fromString(filePath), QIODevice::ReadOnly))
|
||||
return reader.data();
|
||||
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user