From 25ca2f54e19e7c266d55fb3485d315d639d3f3f0 Mon Sep 17 00:00:00 2001 From: Gulliver Date: Thu, 3 Oct 2024 18:08:04 +0200 Subject: [PATCH] made count method const and removed superfluous ; --- include/crow/json.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/crow/json.h b/include/crow/json.h index 0c8a6cd61..bc98a5d59 100644 --- a/include/crow/json.h +++ b/include/crow/json.h @@ -40,7 +40,7 @@ namespace crow // NOTE: Already documented in "crow/app.h" if (c < 10) return '0' + c; return 'a' + c - 10; - }; + } inline void escape(const std::string& str, std::string& ret) { @@ -573,7 +573,7 @@ namespace crow // NOTE: Already documented in "crow/app.h" return it != end() && it->key_ == str; } - int count(const std::string& str) + int count(const std::string& str) const { return has(str) ? 1 : 0; }