forked from qt-creator/qt-creator
clangformat: Fix compile error
Change-Id: Icdf4fcbc1c813557513bc1b0e8e8d2228a668e2b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -50,8 +50,8 @@ public:
|
||||
Q_UNUSED(IsVolatile);
|
||||
|
||||
const FilePath path = FilePath::fromString(QString::fromStdString(Name.str()));
|
||||
const std::optional<QByteArray> contents = path.fileContents(FileSize, 0);
|
||||
QTC_ASSERT(contents, return std::error_code());
|
||||
const expected_str<QByteArray> contents = path.fileContents(FileSize, 0);
|
||||
QTC_ASSERT_EXPECTED(contents, return std::error_code());
|
||||
|
||||
return MemoryBuffer::getMemBufferCopy(contents->data(), Name);
|
||||
}
|
||||
@@ -108,6 +108,8 @@ public:
|
||||
/// \note The 'end' iterator is directory_iterator().
|
||||
vfs::directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override
|
||||
{
|
||||
Q_UNUSED(Dir);
|
||||
Q_UNUSED(EC);
|
||||
Q_UNIMPLEMENTED();
|
||||
return {};
|
||||
}
|
||||
|
Reference in New Issue
Block a user