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
committed by Jack Grigg
parent 1315591c85
commit 7f4acac433
3 changed files with 17 additions and 22 deletions

View File

@@ -134,9 +134,9 @@ class CHashWriter
private:
CHash256 ctx;
const int nType;
const int nVersion;
public:
int nType;
int nVersion;
CHashWriter(int nTypeIn, int nVersionIn) : nType(nTypeIn), nVersion(nVersionIn) {}