diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 14:14:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 14:14:02 +0200 |
commit | 8c9f2efe621b7d5bc41e76b734a3fe9de90fa795 (patch) | |
tree | 0bf6116cd00af5eaa4fb5a1672af3ed5a07da516 /include/basegfx/polygon | |
parent | 06c1dc4c09ba816affb8b65e8215bcd56a81df91 (diff) |
Make some basegfx operator << found by ADL
...as will be needed by some upcoming replacements of CPPUNIT_ASSERT with
CPPUNIT_ASSERT_EQUAL
Change-Id: I7c861f1cb81de4540e88d89dbf095acc61a56503
Diffstat (limited to 'include/basegfx/polygon')
-rw-r--r-- | include/basegfx/polygon/b2dpolygon.hxx | 28 | ||||
-rw-r--r-- | include/basegfx/polygon/b2dpolypolygon.hxx | 28 |
2 files changed, 28 insertions, 28 deletions
diff --git a/include/basegfx/polygon/b2dpolygon.hxx b/include/basegfx/polygon/b2dpolygon.hxx index c32d8251002e..703f24548975 100644 --- a/include/basegfx/polygon/b2dpolygon.hxx +++ b/include/basegfx/polygon/b2dpolygon.hxx @@ -223,23 +223,23 @@ namespace basegfx // typedef for a vector of B2DPolygons typedef ::std::vector< B2DPolygon > B2DPolygonVector; -} // end of namespace basegfx - -template< typename charT, typename traits > -inline std::basic_ostream<charT, traits> & operator <<( - std::basic_ostream<charT, traits> & stream, const basegfx::B2DPolygon& poly ) -{ - stream << "<" << poly.count() << ":"; - for (sal_uInt32 i = 0; i < poly.count(); i++) + template< typename charT, typename traits > + inline std::basic_ostream<charT, traits> & operator <<( + std::basic_ostream<charT, traits> & stream, const B2DPolygon& poly ) { - if (i > 0) - stream << "--"; - stream << poly.getB2DPoint(i); + stream << "<" << poly.count() << ":"; + for (sal_uInt32 i = 0; i < poly.count(); i++) + { + if (i > 0) + stream << "--"; + stream << poly.getB2DPoint(i); + } + stream << ">"; + + return stream; } - stream << ">"; - return stream; -} +} // end of namespace basegfx #endif // INCLUDED_BASEGFX_POLYGON_B2DPOLYGON_HXX diff --git a/include/basegfx/polygon/b2dpolypolygon.hxx b/include/basegfx/polygon/b2dpolypolygon.hxx index c033989a722b..ddc05a669ceb 100644 --- a/include/basegfx/polygon/b2dpolypolygon.hxx +++ b/include/basegfx/polygon/b2dpolypolygon.hxx @@ -131,23 +131,23 @@ namespace basegfx // typedef for a vector of B2DPolyPolygons typedef ::std::vector< B2DPolyPolygon > B2DPolyPolygonVector; -} // end of namespace basegfx - -template< typename charT, typename traits > -inline std::basic_ostream<charT, traits> & operator <<( - std::basic_ostream<charT, traits> & stream, const basegfx::B2DPolyPolygon& poly ) -{ - stream << "[" << poly.count() << ":"; - for (sal_uInt32 i = 0; i < poly.count(); i++) + template< typename charT, typename traits > + inline std::basic_ostream<charT, traits> & operator <<( + std::basic_ostream<charT, traits> & stream, const B2DPolyPolygon& poly ) { - if (i > 0) - stream << ","; - stream << poly.getB2DPolygon(i); + stream << "[" << poly.count() << ":"; + for (sal_uInt32 i = 0; i < poly.count(); i++) + { + if (i > 0) + stream << ","; + stream << poly.getB2DPolygon(i); + } + stream << "]"; + + return stream; } - stream << "]"; - return stream; -} +} // end of namespace basegfx #endif // INCLUDED_BASEGFX_POLYGON_B2DPOLYPOLYGON_HXX |