mirror of
https://github.com/AxioDL/nod.git
synced 2025-12-09 21:48:01 +00:00
General: Make use of override where applicable
Makes it explicit where functions are being overridden in derived classes/structs.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user