[cfe-commits] r109443 - /cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp
Dan Gohman
gohman at apple.com
Mon Jul 26 14:33:22 PDT 2010
Author: djg
Date: Mon Jul 26 16:33:22 2010
New Revision: 109443
URL: http://llvm.org/viewvc/llvm-project?rev=109443&view=rev
Log:
Minor code simplification.
Modified:
cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp
Modified: cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp?rev=109443&r1=109442&r2=109443&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp (original)
+++ cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp Mon Jul 26 16:33:22 2010
@@ -234,8 +234,7 @@
default: OS << C->Text; break;
}
}
- OS.flush();
- return Result;
+ return OS.str();
}
const char *CodeCompletionString::getTypedText() const {
More information about the cfe-commits
mailing list