diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-06-08 09:28:28 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2017-06-08 09:28:28 -0400 |
commit | 3ff1fa8c4a6198ebc277bbf814b4e07bf78eb98a (patch) | |
tree | 0732d46406903e6a80714d5172f9dcc6c964b2dd /src/test | |
parent | 24e44c354d5b9174cb9cb7d157a985e197aa7886 (diff) |
Use override keyword on CCoinsView overrides
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/coins_tests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index 0ed71b96fc..40801ab16c 100644 --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -37,7 +37,7 @@ class CCoinsViewTest : public CCoinsView std::map<COutPoint, Coin> map_; public: - bool GetCoin(const COutPoint& outpoint, Coin& coin) const + bool GetCoin(const COutPoint& outpoint, Coin& coin) const override { std::map<COutPoint, Coin>::const_iterator it = map_.find(outpoint); if (it == map_.end()) { @@ -51,15 +51,15 @@ public: return true; } - bool HaveCoin(const COutPoint& outpoint) const + bool HaveCoin(const COutPoint& outpoint) const override { Coin coin; return GetCoin(outpoint, coin); } - uint256 GetBestBlock() const { return hashBestBlock_; } + uint256 GetBestBlock() const override { return hashBestBlock_; } - bool BatchWrite(CCoinsMap& mapCoins, const uint256& hashBlock) + bool BatchWrite(CCoinsMap& mapCoins, const uint256& hashBlock) override { for (CCoinsMap::iterator it = mapCoins.begin(); it != mapCoins.end(); ) { if (it->second.flags & CCoinsCacheEntry::DIRTY) { |