summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/svdraw/svdhdl.cxx5
-rw-r--r--svx/source/xoutdev/xtabcolr.cxx2
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;
}