diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-06 19:00:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-06 20:28:05 +0200 |
commit | 13d71843510964a98d3c480d1e42533bdd34deab (patch) | |
tree | dd9bb2745c787d1afe04b88d3fe4f3e7fce652b8 /tools | |
parent | 11419c34eb38b1d15bd83ca8c511346a7bc30537 (diff) |
make tools::Poly*gon single-arg constructors explicit
which will help avoid ambiguity in method calls in an upcoming patch
Change-Id: Ic7607ac7d95559e0942a84fb3226cfdd6ade22bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154146
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/poly2.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx index c6d0a46032c8..a00f64f41b18 100644 --- a/tools/source/generic/poly2.cxx +++ b/tools/source/generic/poly2.cxx @@ -40,6 +40,10 @@ PolyPolygon::PolyPolygon( const tools::Polygon& rPoly ) : mpImplPolyPolygon( rPoly ) { } +PolyPolygon::PolyPolygon( const tools::Rectangle& rRect ) + : mpImplPolyPolygon( tools::Polygon(rRect) ) +{ +} PolyPolygon::PolyPolygon( const tools::PolyPolygon& rPolyPoly ) : mpImplPolyPolygon( rPolyPoly.mpImplPolyPolygon ) |