Kaydet (Commit) d11d0915 authored tarafından Michael Stahl's avatar Michael Stahl Kaydeden (comit) Caolán McNamara

svx: loplugin:badstatics

(cherry picked from commit d5016b01)

Change-Id: Ief31d8153fdbf91cdd29df5ac7801bd88a98542e
Reviewed-on: https://gerrit.libreoffice.org/19955Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 2466c85c
......@@ -2252,10 +2252,7 @@ SdrCropHdl::SdrCropHdl(
BitmapEx SdrCropHdl::GetHandlesBitmap()
{
static BitmapEx* pModernBitmap = 0;
if( pModernBitmap == 0 )
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