Add const to methods that do not modify the object for which it is called

This commit is contained in:
practicalswift
2017-03-09 13:34:54 +01:00
parent 0c70e845aa
commit 6e8c48dc59
23 changed files with 38 additions and 38 deletions

View File

@@ -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;
}