Fix a whole pile of missing 'override' keywords.

This commit is contained in:
David Given
2024-01-22 20:55:38 +01:00
parent 45e796f15f
commit 7095c03e28
38 changed files with 92 additions and 81 deletions

View File

@@ -113,12 +113,12 @@ public:
{
}
uint32_t capabilities() const
uint32_t capabilities() const override
{
return OP_GETFSDATA | OP_LIST | OP_GETFILE | OP_GETDIRENT;
}
std::map<std::string, std::string> getMetadata()
std::map<std::string, std::string> getMetadata() override
{
AcornDfsDirectory dir(this);
@@ -130,12 +130,12 @@ public:
return attributes;
}
FilesystemStatus check()
FilesystemStatus check() override
{
return FS_OK;
}
std::vector<std::shared_ptr<Dirent>> list(const Path& path)
std::vector<std::shared_ptr<Dirent>> list(const Path& path) override
{
if (!path.empty())
throw FileNotFoundException();
@@ -148,7 +148,7 @@ public:
return result;
}
Bytes getFile(const Path& path)
Bytes getFile(const Path& path) override
{
AcornDfsDirectory dir(this);
auto dirent = dir.findFile(path);
@@ -166,7 +166,7 @@ public:
return data;
}
std::shared_ptr<Dirent> getDirent(const Path& path)
std::shared_ptr<Dirent> getDirent(const Path& path) override
{
AcornDfsDirectory dir(this);
return dir.findFile(path);

View File

@@ -141,7 +141,7 @@ public:
{
}
uint32_t capabilities() const
uint32_t capabilities() const override
{
return OP_GETFSDATA | OP_LIST | OP_GETFILE | OP_GETDIRENT;
}

View File

@@ -101,7 +101,7 @@ public:
{
}
uint32_t capabilities() const
uint32_t capabilities() const override
{
return OP_GETFSDATA | OP_LIST | OP_GETFILE | OP_GETDIRENT;
}

View File

@@ -189,7 +189,7 @@ public:
{
}
uint32_t capabilities() const
uint32_t capabilities() const override
{
return OP_GETFSDATA | OP_LIST | OP_GETFILE | OP_GETDIRENT;
}