Don't declare de facto const member functions as non-const

This commit is contained in:
practicalswift
2020-12-06 15:51:22 +00:00
parent 64156ad4d1
commit 1c65c075ee
13 changed files with 20 additions and 20 deletions

View File

@@ -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; });
};