Make streams' read and write return void

The stream implementations had two cascading layers (the upper one
with operator<< and operator>>, and a lower one with read and write).
The lower layer's functions are never cascaded (nor should they, as
they should only be used from the higher layer), so make them return
void instead.
This commit is contained in:
Pieter Wuille
2016-10-28 21:55:12 -07:00
parent 50e8a9ccd7
commit c2c5d42f36
4 changed files with 12 additions and 22 deletions

View File

@@ -943,10 +943,9 @@ public:
CSizeComputer(int nTypeIn, int nVersionIn) : nSize(0), nType(nTypeIn), nVersion(nVersionIn) {}
CSizeComputer& write(const char *psz, size_t nSize)
void write(const char *psz, size_t nSize)
{
this->nSize += nSize;
return *this;
}
template<typename T>