Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
6b0ae6c6
Kaydet (Commit)
6b0ae6c6
authored
Ock 09, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
the only GraphicManager is the mpGlobalMgr, so simplify accordingly
Change-Id: I5b237e27815e138cdcab75b1b9f657882ae8a37b
üst
439b2a13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
35 deletions
+18
-35
grfmgr.cxx
svtools/source/graphic/grfmgr.cxx
+18
-35
No files found.
svtools/source/graphic/grfmgr.cxx
Dosyayı görüntüle @
6b0ae6c6
...
...
@@ -163,51 +163,34 @@ void GraphicObject::ImplAssignGraphicData()
void
GraphicObject
::
ImplSetGraphicManager
(
const
OString
*
pID
,
const
GraphicObject
*
pCopyObj
)
{
if
(
mpMgr
&&
mpMgr
==
mpGlobalMgr
)
if
(
mpMgr
)
return
;
else
{
if
(
mp
Mgr
)
if
(
!
mpGlobal
Mgr
)
{
mpMgr
->
ImplUnregisterObj
(
*
this
);
if
(
(
mpMgr
==
mpGlobalMgr
)
&&
!
mpGlobalMgr
->
ImplHasObjects
()
)
if
(
!
utl
::
ConfigManager
::
IsAvoidConfig
())
{
delete
mpGlobalMgr
;
mpGlobalMgr
=
nullptr
;
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
());
}
}
if
(
true
)
{
if
(
!
mpGlobalMgr
)
else
{
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
(
20000
,
20000
);
mpGlobalMgr
->
SetCacheTimeout
(
20000
);
}
mpMgr
=
mpGlobalMgr
;
}
else
mpMgr
=
nullptr
;
mpMgr
=
mpGlobalMgr
;
mpMgr
->
ImplRegisterObj
(
*
this
,
maGraphic
,
pID
,
pCopyObj
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment