diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-12-06 15:51:22 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-12-06 18:44:25 +0000 |
commit | 1c65c075ee4c7f98d9c1fac5ed7576b96374d4e9 (patch) | |
tree | 6bbc3ecd15d74450843b7049414b0c1950182c4b /src/test/checkqueue_tests.cpp | |
parent | 64156ad4d1f50daf35250dc3b329a8a595594d87 (diff) | |
download | bitcoin-1c65c075ee4c7f98d9c1fac5ed7576b96374d4e9.tar.xz |
Don't declare de facto const member functions as non-const
Diffstat (limited to 'src/test/checkqueue_tests.cpp')
-rw-r--r-- | src/test/checkqueue_tests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/checkqueue_tests.cpp b/src/test/checkqueue_tests.cpp index 8348810ac1..5dbf07b420 100644 --- a/src/test/checkqueue_tests.cpp +++ b/src/test/checkqueue_tests.cpp @@ -26,7 +26,7 @@ static const unsigned int QUEUE_BATCH_SIZE = 128; static const int SCRIPT_CHECK_THREADS = 3; struct FakeCheck { - bool operator()() + bool operator()() const { return true; } @@ -47,7 +47,7 @@ struct FailingCheck { bool fails; FailingCheck(bool _fails) : fails(_fails){}; FailingCheck() : fails(true){}; - bool operator()() + bool operator()() const { return !fails; } @@ -76,7 +76,7 @@ struct UniqueCheck { struct MemoryCheck { static std::atomic<size_t> fake_allocated_memory; bool b {false}; - bool operator()() + bool operator()() const { return true; } @@ -107,7 +107,7 @@ struct FrozenCleanupCheck { // Freezing can't be the default initialized behavior given how the queue // swaps in default initialized Checks. bool should_freeze {false}; - bool operator()() + bool operator()() const { return true; } |