General: Make use of override where applicable

Makes it explicit where functions are being overridden in derived
classes/structs.
This commit is contained in:
Lioncash
2019-08-10 01:41:41 -04:00
parent ac6f2a1ed2
commit 2171388b9d
10 changed files with 73 additions and 71 deletions

View File

@@ -20,12 +20,12 @@ public:
}
public:
uint64_t read(void* buf, uint64_t length) { return fp->read(buf, length); }
uint64_t position() const { return fp->position(); }
void seek(int64_t offset, int whence) { fp->seek(offset, whence); }
uint64_t read(void* buf, uint64_t length) override { return fp->read(buf, length); }
uint64_t position() const override { return fp->position(); }
void seek(int64_t offset, int whence) override { fp->seek(offset, whence); }
};
std::unique_ptr<IReadStream> beginReadStream(uint64_t offset) const {
std::unique_ptr<IReadStream> beginReadStream(uint64_t offset) const override {
bool Err = false;
auto ret = std::unique_ptr<IReadStream>(new ReadStream(m_fio->beginReadStream(offset), Err));
if (Err)
@@ -42,10 +42,10 @@ public:
}
public:
uint64_t write(const void* buf, uint64_t length) { return fp->write(buf, length); }
uint64_t write(const void* buf, uint64_t length) override { return fp->write(buf, length); }
};
std::unique_ptr<IWriteStream> beginWriteStream(uint64_t offset) const {
std::unique_ptr<IWriteStream> beginWriteStream(uint64_t offset) const override {
bool Err = false;
auto ret = std::unique_ptr<IWriteStream>(new WriteStream(m_fio->beginWriteStream(offset), Err));
if (Err)