summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-11-12 22:02:20 +0100
committerMichael Stahl <mstahl@redhat.com>2015-11-13 11:03:09 +0100
commitd5016b013672056f89f908b6cde38183fad145bb (patch)
tree584efcdf260fc38ba5348ba40521fadb1b3cc9ac /svx/source/svdraw
parentcc77a2a8f3447b02d33a224df627f6500adc158f (diff)
svx: loplugin:badstatics
Change-Id: Ief31d8153fdbf91cdd29df5ac7801bd88a98542e
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r--svx/source/svdraw/svdhdl.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx
index 10db049cecbb..af2be461da15 100644
--- a/svx/source/svdraw/svdhdl.cxx
+++ b/svx/source/svdraw/svdhdl.cxx
@@ -2250,10 +2250,7 @@ SdrCropHdl::SdrCropHdl(
BitmapEx SdrCropHdl::GetHandlesBitmap()
{
- static BitmapEx* pModernBitmap = nullptr;
- if( pModernBitmap == nullptr )
- pModernBitmap = new BitmapEx(ResId(SIP_SA_CROP_MARKERS, *ImpGetResMgr()));
- return *pModernBitmap;
+ return BitmapEx(ResId(SIP_SA_CROP_MARKERS, *ImpGetResMgr()));
}