Kaydet (Commit) d5016b01 authored tarafından Michael Stahl's avatar Michael Stahl

svx: loplugin:badstatics

Change-Id: Ief31d8153fdbf91cdd29df5ac7801bd88a98542e
üst cc77a2a8
...@@ -2250,10 +2250,7 @@ SdrCropHdl::SdrCropHdl( ...@@ -2250,10 +2250,7 @@ SdrCropHdl::SdrCropHdl(
BitmapEx SdrCropHdl::GetHandlesBitmap() BitmapEx SdrCropHdl::GetHandlesBitmap()
{ {
static BitmapEx* pModernBitmap = nullptr; return BitmapEx(ResId(SIP_SA_CROP_MARKERS, *ImpGetResMgr()));
if( pModernBitmap == nullptr )
pModernBitmap = new BitmapEx(ResId(SIP_SA_CROP_MARKERS, *ImpGetResMgr()));
return *pModernBitmap;
} }
......
...@@ -36,7 +36,7 @@ XColorListRef XColorList::CreateStdColorList() ...@@ -36,7 +36,7 @@ XColorListRef XColorList::CreateStdColorList()
XColorListRef XColorList::GetStdColorList() XColorListRef XColorList::GetStdColorList()
{ {
static XColorListRef aTable( CreateStdColorList() ); XColorListRef aTable( CreateStdColorList() );
return aTable; return aTable;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment