Make nType and nVersion private and sometimes const

Make the various stream implementations' nType and nVersion private
and const (except in CDataStream where we really need a setter).
This commit is contained in:
Pieter Wuille
2016-10-28 16:57:24 -07:00
parent c2c5d42f36
commit fad9b66504
4 changed files with 20 additions and 24 deletions

View File

@@ -937,9 +937,9 @@ class CSizeComputer
protected:
size_t nSize;
const int nType;
const int nVersion;
public:
int nType;
int nVersion;
CSizeComputer(int nTypeIn, int nVersionIn) : nSize(0), nType(nTypeIn), nVersion(nVersionIn) {}