Spell empty StringRef correctly (0 is a null StringRef, which is not the same).

llvm-svn: 87011
This commit is contained in:
Daniel Dunbar
2009-11-12 18:40:12 +00:00
parent 49ba3cabdd
commit b0a1942196
2 changed files with 2 additions and 2 deletions

View 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);

View 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: