diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-26 21:33:22 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-26 21:33:22 +0000 |
commit | 6bdeb4024a7422bbd61fad403383af76b0581d45 (patch) | |
tree | b82691dd824a016e01502b8bad33e7971c662303 /lib/Sema/CodeCompleteConsumer.cpp | |
parent | 55c6570bf6f4342203eb0ff0816fe28e6c55964a (diff) |
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/CodeCompleteConsumer.cpp')
-rw-r--r-- | lib/Sema/CodeCompleteConsumer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |