Skip to content

Commit dac6671

Browse files
authored
matchcompiler.h: fixed some clang-tidy warnings (#5374)
These do not show up in the CI since we only scan the non-matchcompiled code.
1 parent 9d1bb5a commit dac6671

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matchcompiler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace MatchCompiler {
2727
template<unsigned int n>
2828
class ConstString {
2929
public:
30-
typedef const char(&StringRef)[n];
30+
using StringRef = const char (&)[n];
3131
explicit ConstString(StringRef s)
3232
: _s(s) {}
3333

@@ -46,7 +46,7 @@ namespace MatchCompiler {
4646
}
4747

4848
template<>
49-
inline bool equalN<0>(const char[], const char[])
49+
inline bool equalN<0>(const char /*s1*/[], const char /*s2*/[])
5050
{
5151
return true;
5252
}

0 commit comments

Comments
 (0)