Skip to content

Commit 25ca2f5

Browse files
committed
made count method const and removed superfluous ;
1 parent f84ad04 commit 25ca2f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/crow/json.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace crow // NOTE: Already documented in "crow/app.h"
4040
if (c < 10)
4141
return '0' + c;
4242
return 'a' + c - 10;
43-
};
43+
}
4444

4545
inline void escape(const std::string& str, std::string& ret)
4646
{
@@ -573,7 +573,7 @@ namespace crow // NOTE: Already documented in "crow/app.h"
573573
return it != end() && it->key_ == str;
574574
}
575575

576-
int count(const std::string& str)
576+
int count(const std::string& str) const
577577
{
578578
return has(str) ? 1 : 0;
579579
}

0 commit comments

Comments
 (0)