summaryrefslogtreecommitdiff
path: root/include/cppcanvas/basegfxfactory.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-09 08:45:51 +0200
committerNoel Grandin <noel@peralex.com>2015-04-13 09:37:12 +0200
commit26ec80f47df1b32c5e1ae8c96d597ef8c90fee86 (patch)
tree11b53e701f50ff170552054ef7d23136cd4710b6 /include/cppcanvas/basegfxfactory.hxx
parentb5f5a386504e320b022f8609c9c36652ae2d3d18 (diff)
loplugin:staticmethods
Change-Id: I33a8ca28b0c3bf1c31758d93238e74927bebde9c
Diffstat (limited to 'include/cppcanvas/basegfxfactory.hxx')
-rw-r--r--include/cppcanvas/basegfxfactory.hxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/include/cppcanvas/basegfxfactory.hxx b/include/cppcanvas/basegfxfactory.hxx
index 115211461d8f..5341cd631ebc 100644
--- a/include/cppcanvas/basegfxfactory.hxx
+++ b/include/cppcanvas/basegfxfactory.hxx
@@ -53,29 +53,23 @@ namespace cppcanvas
class CPPCANVAS_DLLPUBLIC BaseGfxFactory
{
public:
- static BaseGfxFactory& getInstance();
-
/** Create a polygon from a ::basegfx::B2DPolygon
The created polygon initially has the same size in user
coordinate space as the source polygon
*/
- PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::basegfx::B2DPolygon& rPoly ) const;
+ static PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::basegfx::B2DPolygon& rPoly );
/** Create an uninitialized bitmap with the given size
*/
- BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize ) const;
+ static BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize );
/** Create an uninitialized alpha bitmap with the given size
*/
- BitmapSharedPtr createAlphaBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize ) const;
+ static BitmapSharedPtr createAlphaBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize );
private:
- friend struct InitInstance2;
-
- // singleton
- BaseGfxFactory();
-
+ BaseGfxFactory() SAL_DELETED_FUNCTION;
BaseGfxFactory(const BaseGfxFactory&) SAL_DELETED_FUNCTION;
BaseGfxFactory& operator=( const BaseGfxFactory& ) SAL_DELETED_FUNCTION;
};