diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-09 15:51:58 +0000 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-11-28 00:13:19 -0500 |
commit | 21d4a03363b776109deaa6cef541a071f244d7a5 (patch) | |
tree | a96f745d7d6bb8e53b003dae18672abef163cd15 /svtools | |
parent | 27b3043ac1d125e48fbb857282759d67acf1b2b6 (diff) |
unfold and unindent else cause
Change-Id: I22131a477547ac08b0c6b762353c9796f80c3666
(cherry picked from commit 9d138866d269eea262b22497af62b09570bd7a05)
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfmgr.cxx | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx index 2577393465e1..f480537c325f 100644 --- a/svtools/source/graphic/grfmgr.cxx +++ b/svtools/source/graphic/grfmgr.cxx @@ -165,34 +165,32 @@ void GraphicObject::ImplSetGraphicManager(const OString* pID, const GraphicObjec { if (mpMgr) return; - else + + if (!mpGlobalMgr) { - if( !mpGlobalMgr ) + if (!utl::ConfigManager::IsAvoidConfig()) { - if (!utl::ConfigManager::IsAvoidConfig()) - { - mpGlobalMgr = new GraphicManager( - (officecfg::Office::Common::Cache::GraphicManager:: - TotalCacheSize::get()), - (officecfg::Office::Common::Cache::GraphicManager:: - ObjectCacheSize::get())); - mpGlobalMgr->SetCacheTimeout( - officecfg::Office::Common::Cache::GraphicManager:: - ObjectReleaseTime::get()); - } - else - { - mpGlobalMgr = new GraphicManager( - 20000, - 20000); - mpGlobalMgr->SetCacheTimeout( - 20000); - } + mpGlobalMgr = new GraphicManager( + (officecfg::Office::Common::Cache::GraphicManager:: + TotalCacheSize::get()), + (officecfg::Office::Common::Cache::GraphicManager:: + ObjectCacheSize::get())); + mpGlobalMgr->SetCacheTimeout( + officecfg::Office::Common::Cache::GraphicManager:: + ObjectReleaseTime::get()); + } + else + { + mpGlobalMgr = new GraphicManager( + 20000, + 20000); + mpGlobalMgr->SetCacheTimeout( + 20000); } - - mpMgr = mpGlobalMgr; - mpMgr->ImplRegisterObj( *this, maGraphic, pID, pCopyObj ); } + + mpMgr = mpGlobalMgr; + mpMgr->ImplRegisterObj( *this, maGraphic, pID, pCopyObj ); } void GraphicObject::ImplAutoSwapIn() |