aboutsummaryrefslogtreecommitdiff
path: root/src/serialize.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-10-28 16:57:24 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2016-11-07 13:49:11 -0800
commitfad9b66504f176ed3624515f3bf4d428cf687607 (patch)
treedbeedee85746dc16488f3ff5a4ab76bbcd083be0 /src/serialize.h
parentc2c5d42f36f4440aaddc4a64974a52fdb07af08b (diff)
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).
Diffstat (limited to 'src/serialize.h')
-rw-r--r--src/serialize.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialize.h b/src/serialize.h
index f8e82edf8b..68a8e28477 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -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) {}