parent
307cf89b19
commit
21f80bad45
|
|
@ -48,8 +48,8 @@ class StringSwitch {
|
||||||
const T *Result;
|
const T *Result;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit StringSwitch(StringRef Str)
|
explicit StringSwitch(StringRef S)
|
||||||
: Str(Str), Result(0) { }
|
: Str(S), Result(0) { }
|
||||||
|
|
||||||
template<unsigned N>
|
template<unsigned N>
|
||||||
StringSwitch& Case(const char (&S)[N], const T& Value) {
|
StringSwitch& Case(const char (&S)[N], const T& Value) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue