mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-03-06 13:15:57 -05:00
Make HashedBlockStream::atEnd report EOF correctly
This commit is contained in:
parent
663b8dcb08
commit
a5ec7fc704
@ -256,3 +256,7 @@ bool HashedBlockStream::writeHashedBlock()
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool HashedBlockStream::atEnd() const {
|
||||||
|
return m_eof;
|
||||||
|
}
|
||||||
|
@ -34,6 +34,8 @@ public:
|
|||||||
bool reset() override;
|
bool reset() override;
|
||||||
void close() override;
|
void close() override;
|
||||||
|
|
||||||
|
bool atEnd() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
qint64 readData(char* data, qint64 maxSize) override;
|
qint64 readData(char* data, qint64 maxSize) override;
|
||||||
qint64 writeData(const char* data, qint64 maxSize) override;
|
qint64 writeData(const char* data, qint64 maxSize) override;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user