[ADT] Generalize pointee_iterator to smart pointers by using decltype.
[oota-llvm.git] / include / llvm / ADT / StringSwitch.h
index 74805830d8546ec6317ed52c4a24ee033212ef5e..0393a0c373efc5f2becc640cef6b01c4bf368184 100644 (file)
@@ -48,8 +48,8 @@ class StringSwitch {
   const T *Result;
 
 public:
-  explicit StringSwitch(StringRef Str)
-  : Str(Str), Result(0) { }
+  explicit StringSwitch(StringRef S)
+  : Str(S), Result(nullptr) { }
 
   template<unsigned N>
   StringSwitch& Case(const char (&S)[N], const T& Value) {