From 6e8c48dc593d8b6e5cebd15a980074715223b572 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 9 Mar 2017 13:34:54 +0100 Subject: Add const to methods that do not modify the object for which it is called --- src/addrdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/addrdb.h') diff --git a/src/addrdb.h b/src/addrdb.h index 6cb36dfac4..8105ebc9b3 100644 --- a/src/addrdb.h +++ b/src/addrdb.h @@ -61,7 +61,7 @@ public: banReason = BanReasonUnknown; } - std::string banReasonToString() + std::string banReasonToString() const { switch (banReason) { case BanReasonNodeMisbehaving: -- cgit v1.2.3