Skip to content

Commit

Permalink
Add anonymous namespace for isImplemented
Browse files Browse the repository at this point in the history
  • Loading branch information
ackerleytng committed Jul 10, 2020
1 parent 1015e94 commit 0eac53f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jwt.cc
Expand Up @@ -24,6 +24,8 @@
namespace google {
namespace jwt_verify {

namespace {

bool isImplemented(absl::string_view alg) {
static const absl::flat_hash_set<absl::string_view> *implemented_algs =
new absl::flat_hash_set<absl::string_view>({
Expand All @@ -37,6 +39,8 @@ bool isImplemented(absl::string_view alg) {
return implemented_algs->find(alg) != implemented_algs->end();
}

}

Jwt::Jwt(const Jwt& instance) { *this = instance; }

Jwt& Jwt::operator=(const Jwt& rhs) {
Expand Down

0 comments on commit 0eac53f

Please sign in to comment.