aboutsummaryrefslogtreecommitdiff
path: root/src/streams.h
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2017-08-16 02:09:10 +0200
committerMarcoFalke <[email protected]>2017-08-16 02:09:49 +0200
commitb6a48914c50631914192aa11b19205436a9c664d (patch)
tree748ac6a80402b05e58f249bca71de2cb6a626ee8 /src/streams.h
parentMerge #11011: [Trivial] Add a comment on the use of prevector in script. (diff)
parentAdd const to methods that do not modify the object for which it is called (diff)
downloaddiscoin-b6a48914c50631914192aa11b19205436a9c664d.tar.xz
discoin-b6a48914c50631914192aa11b19205436a9c664d.zip
Merge #9964: Add const to methods that do not modify the object for which it is called
6e8c48dc5 Add const to methods that do not modify the object for which it is called (practicalswift) Pull request description: Tree-SHA512: a6888111ba16fb796e320e60806e1a77d36f545989b5405dc7319992291800109eab0b8e8c286b784778f41f1ff5289e7cb6b4afd7aec77f385fbcafc02cffc1
Diffstat (limited to 'src/streams.h')
-rw-r--r--src/streams.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/streams.h b/src/streams.h
index a9668b68b..a3fc91971 100644
--- a/src/streams.h
+++ b/src/streams.h
@@ -332,7 +332,7 @@ public:
//
bool eof() const { return size() == 0; }
CDataStream* rdbuf() { return this; }
- int in_avail() { return size(); }
+ int in_avail() const { return size(); }
void SetType(int n) { nType = n; }
int GetType() const { return nType; }
@@ -648,7 +648,7 @@ public:
}
// return the current reading position
- uint64_t GetPos() {
+ uint64_t GetPos() const {
return nReadPos;
}