diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-06-03 16:06:58 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-06-04 10:43:15 +0200 |
commit | 9dd38caceabfcfaf428cc8490dd1ce25696ff789 (patch) | |
tree | aeb1b56a6c096e8789fcf5da2f213565ec9523de /include/tools/poly.hxx | |
parent | def76a088dea12dfd9d9b796e975e742cbe44ce1 (diff) |
Remove unused, broken operator<< for PolyPolygon
...which apparently wants to internally call some operator<< for Polygon
(rPolyPoly.GetObject(i)), but which doesn't exist (and appears to not have
existed when this operator<< for PolyPolygon was added with
e4be770ec8218d80dcc9f1e38fd1c69717beb4fb "add std::ostream operators for Region
and PolyPolygon"), so uses the non-explicit PolyPolygon ctor that takes a
Polygon, and causes infinite recursion for any non-empty PolyPolygon
Change-Id: I308527dcfed18763c8c3ebbce823eea9a0340e70
Reviewed-on: https://gerrit.libreoffice.org/73388
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'include/tools/poly.hxx')
-rw-r--r-- | include/tools/poly.hxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/tools/poly.hxx b/include/tools/poly.hxx index 94d06856e428..b0c6190b6eb8 100644 --- a/include/tools/poly.hxx +++ b/include/tools/poly.hxx @@ -265,18 +265,6 @@ public: typedef std::vector< tools::PolyPolygon > PolyPolyVector; - -template<typename charT, typename traits> -inline std::basic_ostream<charT, traits> & operator <<( - std::basic_ostream<charT, traits> & stream, const tools::PolyPolygon& rPolyPoly) -{ - if (!rPolyPoly.Count()) - stream << "EMPTY"; - for (sal_uInt16 i = 0; i < rPolyPoly.Count(); ++i) - stream << "[" << i << "] " << rPolyPoly.GetObject(i); - return stream; -} - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |