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
+2 -2
View File
@@ -89,8 +89,8 @@ public:
BOOST_CHECK_EQUAL(DynamicMemoryUsage(), ret);
}
CCoinsMap& map() { return cacheCoins; }
size_t& usage() { return cachedCoinsUsage; }
CCoinsMap& map() const { return cacheCoins; }
size_t& usage() const { return cachedCoinsUsage; }
};
} // namespace