diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-09 15:51:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-10 11:10:45 +0000 |
commit | 9d138866d269eea262b22497af62b09570bd7a05 (patch) | |
tree | 516cc3dc9997086ee028477bab9c565e1a25bbc3 /svtools/source | |
parent | 6b0ae6c674e0216bc916232e500515f9eb764664 (diff) |
unfold and unindent else cause
Change-Id: I22131a477547ac08b0c6b762353c9796f80c3666
Diffstat (limited to 'svtools/source')
-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() |