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:
parent
9d1bb5a580
commit
dac6671195
|
@ -27,7 +27,7 @@ namespace MatchCompiler {
|
|||
template<unsigned int n>
|
||||
class ConstString {
|
||||
public:
|
||||
typedef const char(&StringRef)[n];
|
||||
using StringRef = const char (&)[n];
|
||||
explicit ConstString(StringRef s)
|
||||
: _s(s) {}
|
||||
|
||||
|
@ -46,7 +46,7 @@ namespace MatchCompiler {
|
|||
}
|
||||
|
||||
template<>
|
||||
inline bool equalN<0>(const char[], const char[])
|
||||
inline bool equalN<0>(const char /*s1*/[], const char /*s2*/[])
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue