From: Dan Gohman Date: Mon, 26 Jul 2010 21:33:22 +0000 (+0000) Subject: Minor code simplification. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bdeb4024a7422bbd61fad403383af76b0581d45;p=clang Minor code simplification. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109443 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/CodeCompleteConsumer.cpp b/lib/Sema/CodeCompleteConsumer.cpp index 6cefc61f66..03107769d7 100644 --- a/lib/Sema/CodeCompleteConsumer.cpp +++ b/lib/Sema/CodeCompleteConsumer.cpp @@ -234,8 +234,7 @@ std::string CodeCompletionString::getAsString() const { default: OS << C->Text; break; } } - OS.flush(); - return Result; + return OS.str(); } const char *CodeCompletionString::getTypedText() const {