aboutsummaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-10-28 16:57:24 -0700
committerPieter Wuille <[email protected]>2016-11-07 13:49:11 -0800
commitfad9b66504f176ed3624515f3bf4d428cf687607 (patch)
treedbeedee85746dc16488f3ff5a4ab76bbcd083be0 /src/hash.h
parentMake streams' read and write return void (diff)
downloaddiscoin-fad9b66504f176ed3624515f3bf4d428cf687607.tar.xz
discoin-fad9b66504f176ed3624515f3bf4d428cf687607.zip
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/hash.h')
-rw-r--r--src/hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.h b/src/hash.h
index 88926ab31..73e31580d 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -132,9 +132,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) {}