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(
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()));
}
......
......@@ -36,7 +36,7 @@ XColorListRef XColorList::CreateStdColorList()
XColorListRef XColorList::GetStdColorList()
{
static XColorListRef aTable( CreateStdColorList() );
XColorListRef aTable( CreateStdColorList() );
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