mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 19:53:27 +01:00
Add const to methods that do not modify the object for which it is called
This commit is contained in:
@@ -152,11 +152,11 @@ public:
|
||||
pre_vector.assign(n, value);
|
||||
}
|
||||
|
||||
Size size() {
|
||||
Size size() const {
|
||||
return real_vector.size();
|
||||
}
|
||||
|
||||
Size capacity() {
|
||||
Size capacity() const {
|
||||
return pre_vector.capacity();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user