aboutsummaryrefslogtreecommitdiff
path: root/src/serialize.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-10-28 21:55:12 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2016-11-07 09:39:46 -0800
commitc2c5d42f36f4440aaddc4a64974a52fdb07af08b (patch)
tree121eb8fbd0c3fa2378c900bd411c3a6c0eb7d2ab /src/serialize.h
parent50e8a9ccd78c8c20c3eac6618da7293078446b58 (diff)
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.
Diffstat (limited to 'src/serialize.h')
-rw-r--r--src/serialize.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/serialize.h b/src/serialize.h
index 82870c45b3..f8e82edf8b 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -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>