Skip to content

Commit

Permalink
Remove redundant declaration (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Oct 5, 2023
1 parent 2f44b77 commit dbae338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplecpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ namespace simplecpp {
bool isOneOf(const char ops[]) const;
bool startsWithOneOf(const char c[]) const;
bool endsWithOneOf(const char c[]) const;
static bool SIMPLECPP_LIB isNumberLike(const std::string& str) {
static bool isNumberLike(const std::string& str) {
return std::isdigit(static_cast<unsigned char>(str[0])) ||
(str.size() > 1U && (str[0] == '-' || str[0] == '+') && std::isdigit(static_cast<unsigned char>(str[1])));
}
Expand Down

0 comments on commit dbae338

Please sign in to comment.