From fb9908eece3076ad88c160654450d3069d28c0d8 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 8 Feb 2012 16:48:59 +0000 Subject: use boost::noncopyable --- basegfx/inc/basegfx/tools/unopolypolygon.hxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'basegfx/inc') diff --git a/basegfx/inc/basegfx/tools/unopolypolygon.hxx b/basegfx/inc/basegfx/tools/unopolypolygon.hxx index ca04b7a5f776..9f419837c02c 100644 --- a/basegfx/inc/basegfx/tools/unopolypolygon.hxx +++ b/basegfx/inc/basegfx/tools/unopolypolygon.hxx @@ -37,6 +37,7 @@ #include #include #include +#include namespace basegfx @@ -48,8 +49,10 @@ namespace unotools ::com::sun::star::rendering::XBezierPolyPolygon2D, ::com::sun::star::lang::XServiceInfo > UnoPolyPolygonBase; - class BASEGFX_DLLPUBLIC UnoPolyPolygon : private cppu::BaseMutex, - public UnoPolyPolygonBase + class BASEGFX_DLLPUBLIC UnoPolyPolygon + : private cppu::BaseMutex + , private boost::noncopyable + , public UnoPolyPolygonBase { public: explicit UnoPolyPolygon( const B2DPolyPolygon& ); @@ -96,15 +99,15 @@ namespace unotools sal_Int32 nNumberOfPoints ) const; /// Get cow copy of internal polygon. not thread-safe outside this object. - B2DPolyPolygon getPolyPolygonUnsafe() const; + B2DPolyPolygon getPolyPolygonUnsafe() const + { + return maPolyPoly; + } /// Called whenever internal polypolygon gets modified virtual void modifying() const {} private: - UnoPolyPolygon( const UnoPolyPolygon& ); - UnoPolyPolygon& operator=( const UnoPolyPolygon& ); - B2DPolyPolygon maPolyPoly; ::com::sun::star::rendering::FillRule meFillRule; }; -- cgit v1.2.3