]> granicus.if.org Git - clang/commitdiff
Spell empty StringRef correctly (0 is a null StringRef, which is not the same).
authorDaniel Dunbar <daniel@zuster.org>
Thu, 12 Nov 2009 18:40:12 +0000 (18:40 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 12 Nov 2009 18:40:12 +0000 (18:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87011 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/CodeCompleteConsumer.h
lib/Sema/CodeCompleteConsumer.cpp

index 9bbf11b1621e1ad0cbee645afbdb06e22f77bfd0..c436b398f99692b38aaa54769966e1ba0184982b 100644 (file)
@@ -106,7 +106,7 @@ public:
     
     Chunk() : Kind(CK_Text), Text(0) { }
     
-    Chunk(ChunkKind Kind, llvm::StringRef Text = 0);
+    Chunk(ChunkKind Kind, llvm::StringRef Text = "");
     
     /// \brief Create a new text chunk.
     static Chunk CreateText(const char *Text);
index cb4e8ef826b10967540fe0ae545edff80a5241ca..f94989ee7215f98db8671396daad960245dd28ef 100644 (file)
@@ -28,7 +28,7 @@ using namespace clang;
 // Code completion string implementation
 //===----------------------------------------------------------------------===//
 CodeCompletionString::Chunk::Chunk(ChunkKind Kind, llvm::StringRef Text) 
-  : Kind(Kind), Text(0)
+  : Kind(Kind), Text("")
 {
   switch (Kind) {
   case CK_TypedText: