diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-11-12 22:02:20 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-13 11:03:09 +0100 |
commit | d5016b013672056f89f908b6cde38183fad145bb (patch) | |
tree | 584efcdf260fc38ba5348ba40521fadb1b3cc9ac | |
parent | cc77a2a8f3447b02d33a224df627f6500adc158f (diff) |
svx: loplugin:badstatics
Change-Id: Ief31d8153fdbf91cdd29df5ac7801bd88a98542e
-rw-r--r-- | svx/source/svdraw/svdhdl.cxx | 5 | ||||
-rw-r--r-- | svx/source/xoutdev/xtabcolr.cxx | 2 |
2 files changed, 2 insertions, 5 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())); } diff --git a/svx/source/xoutdev/xtabcolr.cxx b/svx/source/xoutdev/xtabcolr.cxx index da2f0b3c4658..c0d911bdefe0 100644 --- a/svx/source/xoutdev/xtabcolr.cxx +++ b/svx/source/xoutdev/xtabcolr.cxx @@ -36,7 +36,7 @@ XColorListRef XColorList::CreateStdColorList() XColorListRef XColorList::GetStdColorList() { - static XColorListRef aTable( CreateStdColorList() ); + XColorListRef aTable( CreateStdColorList() ); return aTable; } |