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

Unified Diff: ui/base/range/range.cc

Issue 10332205: Fix logging of string16s from gfx namespace on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « ui/base/range/range.h ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/range/range.cc
===================================================================
--- ui/base/range/range.cc (revision 137657)
+++ ui/base/range/range.cc (working copy)
@@ -5,9 +5,10 @@
#include "ui/base/range/range.h"
#include <limits>
-#include <ostream>
+#include "base/format_macros.h"
#include "base/logging.h"
+#include "base/stringprintf.h"
namespace ui {
@@ -75,8 +76,8 @@
return Range(min, max);
}
-std::ostream& operator<<(std::ostream& out, const ui::Range& range) {
- return out << "{" << range.start() << "," << range.end() << "}";
+std::string Range::ToString() const {
+ return base::StringPrintf("{%" PRIuS ",%" PRIuS "}", start(), end());
}
} // namespace gfx
« no previous file with comments | « ui/base/range/range.h ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698