From: Alexander Kornienko Date: Mon, 13 May 2013 12:56:35 +0000 (+0000) Subject: A better version of r181699: use raw_string_ostream.str() instead of manually calling... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b6acb69f04ac5339fd39a9c03a0f5d076d51ac3;p=clang A better version of r181699: use raw_string_ostream.str() instead of manually calling .flush(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181702 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index b8c40cf263..384c4628bf 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -204,8 +204,7 @@ std::string configurationAsText(const FormatStyle &Style) { // reference here. FormatStyle NonConstStyle = Style; Output << NonConstStyle; - Stream.flush(); - return Text; + return Stream.str(); } // Returns the length of everything up to the first possible line break after