projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[ADT] Generalize pointee_iterator to smart pointers by using decltype.
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
StringSwitch.h
diff --git
a/include/llvm/ADT/StringSwitch.h
b/include/llvm/ADT/StringSwitch.h
index 74805830d8546ec6317ed52c4a24ee033212ef5e..0393a0c373efc5f2becc640cef6b01c4bf368184 100644
(file)
--- a/
include/llvm/ADT/StringSwitch.h
+++ b/
include/llvm/ADT/StringSwitch.h
@@
-48,8
+48,8
@@
class StringSwitch {
const T *Result;
public:
- explicit StringSwitch(StringRef S
tr
)
- : Str(S
tr), Result(0
) { }
+ explicit StringSwitch(StringRef S)
+ : Str(S
), Result(nullptr
) { }
template<unsigned N>
StringSwitch& Case(const char (&S)[N], const T& Value) {