matchcompiler.h: fixed some clang-tidy warnings (#5374)

These do not show up in the CI since we only scan the non-matchcompiled
code.
This commit is contained in:
Oliver Stöneberg 2023-08-29 21:50:21 +02:00 committed by GitHub
parent 9d1bb5a580
commit dac6671195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ namespace MatchCompiler {
template<unsigned int n> template<unsigned int n>
class ConstString { class ConstString {
public: public:
typedef const char(&StringRef)[n]; using StringRef = const char (&)[n];
explicit ConstString(StringRef s) explicit ConstString(StringRef s)
: _s(s) {} : _s(s) {}
@ -46,7 +46,7 @@ namespace MatchCompiler {
} }
template<> template<>
inline bool equalN<0>(const char[], const char[]) inline bool equalN<0>(const char /*s1*/[], const char /*s2*/[])
{ {
return true; return true;
} }