diff options
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/rect.cc | 4 | ||||
-rw-r--r-- | gfx/rect.h | 4 | ||||
-rw-r--r-- | gfx/size.cc | 4 | ||||
-rw-r--r-- | gfx/size.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/gfx/rect.cc b/gfx/rect.cc index 1d9be1f..e9c666c 100644 --- a/gfx/rect.cc +++ b/gfx/rect.cc @@ -241,8 +241,8 @@ bool Rect::SharesEdgeWith(const gfx::Rect& rect) const { (y() == rect.bottom() || bottom() == rect.y())); } -} // namespace gfx - std::ostream& operator<<(std::ostream& out, const gfx::Rect& r) { return out << r.origin() << " " << r.size(); } + +} // namespace gfx @@ -173,8 +173,8 @@ class Rect { gfx::Size size_; }; -} // namespace gfx - std::ostream& operator<<(std::ostream& out, const gfx::Rect& r); +} // namespace gfx + #endif // GFX_RECT_H_ diff --git a/gfx/size.cc b/gfx/size.cc index e39a2d7..6e5528e 100644 --- a/gfx/size.cc +++ b/gfx/size.cc @@ -63,8 +63,8 @@ void Size::set_height(int height) { height_ = height; } -} // namespace gfx - std::ostream& operator<<(std::ostream& out, const gfx::Size& s) { return out << s.width() << "x" << s.height(); } + +} // namespace gfx @@ -75,8 +75,8 @@ class Size { int height_; }; -} // namespace gfx - std::ostream& operator<<(std::ostream& out, const gfx::Size& s); +} // namespace gfx + #endif // GFX_SIZE_H_ |