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/logging.h | |
parent | 64156ad4d1f50daf35250dc3b329a8a595594d87 (diff) |
Don't declare de facto const member functions as non-const
Diffstat (limited to 'src/logging.h')
-rw-r--r-- | src/logging.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logging.h b/src/logging.h index 7e646ef67a..9efecc7c12 100644 --- a/src/logging.h +++ b/src/logging.h @@ -135,9 +135,9 @@ namespace BCLog { bool WillLogCategory(LogFlags category) const; /** Returns a vector of the log categories */ - std::vector<LogCategory> LogCategoriesList(); + std::vector<LogCategory> LogCategoriesList() const; /** Returns a string with the log categories */ - std::string LogCategoriesString() + std::string LogCategoriesString() const { return Join(LogCategoriesList(), ", ", [&](const LogCategory& i) { return i.category; }); }; |