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

Unified Diff: statsreport/formatter.h

Issue 159168: This fixes a number of things that are warnings in the Mac compiler.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 5 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
Index: statsreport/formatter.h
===================================================================
--- statsreport/formatter.h (revision 21208)
+++ statsreport/formatter.h (working copy)
@@ -35,7 +35,7 @@
#ifndef O3D_STATSREPORT_FORMATTER_H__
#define O3D_STATSREPORT_FORMATTER_H__
-#include <strstream>
+#include <sstream>
#include "base/basictypes.h"
#include "metrics.h"
@@ -63,13 +63,13 @@
// Terminates the output string and returns it.
// It is an error to add metrics after output() is called.
- const char *output() {
+ const std::string output() {
output_ << std::ends;
return output_.str();
}
private:
- mutable std::strstream output_;
+ mutable std::ostringstream output_;
DISALLOW_COPY_AND_ASSIGN(Formatter);
};

Powered by Google App Engine
This is Rietveld 408576698