diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-24 21:10:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-25 09:54:22 +0200 |
commit | 4d5e9db574bdb1a7517ffda01efe0746cc058d47 (patch) | |
tree | 728da6e73e00d639db302f42ff66b006e96b13c0 /svx | |
parent | 6676193b9fadea85c08d3e9783e023ffdfa1e682 (diff) |
Related: tdf#112388 last Fraction leak
This SdrEngineDefaults never changes its initial Fraction or Color
and always returns a copy, so drop all the complicated stuff
Change-Id: Ic26d221be022f4d1e75498eca675b4aae1c020f1
Reviewed-on: https://gerrit.libreoffice.org/42723
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdetc.cxx | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx index 3cc369a49be5..f866ace9b8db 100644 --- a/svx/source/svdraw/svdetc.cxx +++ b/svx/source/svdraw/svdetc.cxx @@ -68,10 +68,9 @@ using namespace ::com::sun::star; // Global data of the DrawingEngine -SdrGlobalData::SdrGlobalData() : - pSysLocale(nullptr), - pLocaleData(nullptr), - pDefaults(nullptr) +SdrGlobalData::SdrGlobalData() + : pSysLocale(nullptr) + , pLocaleData(nullptr) { if (!utl::ConfigManager::IsAvoidConfig()) { @@ -334,21 +333,6 @@ bool GetDraftFillColor(const SfxItemSet& rSet, Color& rCol) return bRetval; } -SdrEngineDefaults::SdrEngineDefaults(): - aFontColor(COL_AUTO), - aMapFraction(1,1) -{ -} - -SdrEngineDefaults& SdrEngineDefaults::GetDefaults() -{ - SdrGlobalData& rGlobalData=GetSdrGlobalData(); - if (rGlobalData.pDefaults==nullptr) { - rGlobalData.pDefaults=new SdrEngineDefaults; - } - return *rGlobalData.pDefaults; -} - SdrOutliner* SdrMakeOutliner(OutlinerMode nOutlinerMode, SdrModel& rModel) { SfxItemPool* pPool = &rModel.GetItemPool(); |