Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(800)

Unified Diff: src/ostreams.cc

Issue 616293002: Fix ostream flushing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ostreams.cc
diff --git a/src/ostreams.cc b/src/ostreams.cc
index d619264f148a73f85aff252f555c9e518d57a8e1..416da55e5918432f4584366161440db8112305e8 100644
--- a/src/ostreams.cc
+++ b/src/ostreams.cc
@@ -17,7 +17,10 @@ OFStreamBase::OFStreamBase(FILE* f) : f_(f) {}
OFStreamBase::~OFStreamBase() {}
-OFStreamBase::int_type OFStreamBase::sync() { return 0; }
+OFStreamBase::int_type OFStreamBase::sync() {
+ std::fflush(f_);
+ return 0;
+}
OFStreamBase::int_type OFStreamBase::overflow(int_type c) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698