summaryrefslogtreecommitdiff
path: root/svtools/source/graphic/grfmgr.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-09 15:51:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-10 11:10:45 +0000
commit9d138866d269eea262b22497af62b09570bd7a05 (patch)
tree516cc3dc9997086ee028477bab9c565e1a25bbc3 /svtools/source/graphic/grfmgr.cxx
parent6b0ae6c674e0216bc916232e500515f9eb764664 (diff)
unfold and unindent else cause
Change-Id: I22131a477547ac08b0c6b762353c9796f80c3666
Diffstat (limited to 'svtools/source/graphic/grfmgr.cxx')
-rw-r--r--svtools/source/graphic/grfmgr.cxx46
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()