summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-08-13 15:10:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-05-19 14:47:38 +0100
commitabb6f47bd3941ec63a41a9b9fa4c7de620b5177d (patch)
treef940bd54f51fe8bb68916e63d4c2037ebd841560 /tools
parent38109d24ab5261959b316b7dacc99521858f0749 (diff)
Secured some places where PolyPolygons were created
using a all-points count and a all-points array (cherry picked from commit 8ee49906f04106317997e9ca3bb890870816e274) Conflicts: svtools/source/filter/wmf/enhwmf.cxx svtools/source/filter/wmf/winwmf.cxx tools/inc/tools/poly.hxx tools/source/generic/poly2.cxx Change-Id: I57f7f08d8dd87c83c30ab2d16ca22b772b2bd834
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/poly2.cxx17
1 files changed, 0 insertions, 17 deletions
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx
index 869ac0aa9167..535ff9ac1c01 100644
--- a/tools/source/generic/poly2.cxx
+++ b/tools/source/generic/poly2.cxx
@@ -99,23 +99,6 @@ PolyPolygon::PolyPolygon( const Polygon& rPoly )
mpImplPolyPolygon = new ImplPolyPolygon( 16, 16 );
}
-PolyPolygon::PolyPolygon( sal_uInt16 nPoly, const sal_uInt16* pPointCountAry,
- const Point* pPtAry )
-{
- DBG_CTOR( PolyPolygon, NULL );
-
- if ( nPoly > MAX_POLYGONS )
- nPoly = MAX_POLYGONS;
-
- mpImplPolyPolygon = new ImplPolyPolygon( nPoly );
- for ( sal_uInt16 i = 0; i < nPoly; i++ )
- {
- mpImplPolyPolygon->mpPolyAry[i] = new Polygon( *pPointCountAry, pPtAry );
- pPtAry += *pPointCountAry;
- pPointCountAry++;
- }
-}
-
PolyPolygon::PolyPolygon( const PolyPolygon& rPolyPoly )
{
DBG_CTOR( PolyPolygon, NULL );