From 6e8c48dc593d8b6e5cebd15a980074715223b572 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 9 Mar 2017 13:34:54 +0100 Subject: Add const to methods that do not modify the object for which it is called --- src/streams.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/streams.h') diff --git a/src/streams.h b/src/streams.h index 245fb9cd8f..ca7cd4ed23 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; } -- cgit v1.2.3