Make HashedBlockStream::atEnd report EOF correctly

This commit is contained in:
angelsl authored and Jonathan White committed 2018-01-13 14:23:24 -05:00
1 parent 663b8dcb08
commit a5ec7fc704
2 files changed
+6

No files matched your search

+4
View File
@@ -256,3 +256,7 @@ bool HashedBlockStream::writeHashedBlock()
return true;
}
bool HashedBlockStream::atEnd() const {
return m_eof;
}
+2
View File
@@ -34,6 +34,8 @@ public:
bool reset() override;
void close() override;
bool atEnd() const override;
protected:
qint64 readData(char* data, qint64 maxSize) override;
qint64 writeData(const char* data, qint64 maxSize) override;