From fad9b66504f176ed3624515f3bf4d428cf687607 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Fri, 28 Oct 2016 16:57:24 -0700 Subject: 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). --- src/hash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hash.h') diff --git a/src/hash.h b/src/hash.h index 88926ab31f..73e31580d2 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) {} -- cgit v1.2.3