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
335f7fa8
Kaydet (Commit)
335f7fa8
authored
Eyl 09, 2011
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sb140: #i116786# use auto_ptr to track member lifetime
improves over similar
787b8654
"fix leak"
üst
bb157a42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
toolbarlayoutmanager.cxx
framework/source/layoutmanager/toolbarlayoutmanager.cxx
+5
-9
toolbarlayoutmanager.hxx
framework/source/layoutmanager/toolbarlayoutmanager.hxx
+3
-2
No files found.
framework/source/layoutmanager/toolbarlayoutmanager.cxx
Dosyayı görüntüle @
335f7fa8
...
...
@@ -71,8 +71,6 @@ ToolbarLayoutManager::ToolbarLayoutManager(
m_xUIElementFactoryManager
(
xUIElementFactory
),
m_pParentLayouter
(
pParentLayouter
),
m_eDockOperation
(
DOCKOP_ON_COLROW
),
m_pAddonOptions
(
0
),
m_pGlobalSettings
(
0
),
m_bComponentAttached
(
false
),
m_bMustLayout
(
false
),
m_bLayoutDirty
(
false
),
...
...
@@ -97,8 +95,6 @@ ToolbarLayoutManager::ToolbarLayoutManager(
ToolbarLayoutManager
::~
ToolbarLayoutManager
()
{
delete
m_pGlobalSettings
;
delete
m_pAddonOptions
;
}
//---------------------------------------------------------------------------------------------------------
...
...
@@ -973,8 +969,8 @@ rtl::OUString ToolbarLayoutManager::implts_generateGenericAddonToolbarTitle( sal
void
ToolbarLayoutManager
::
implts_createAddonsToolBars
()
{
WriteGuard
aWriteLock
(
m_aLock
);
if
(
!
m_pAddonOptions
)
m_pAddonOptions
=
new
AddonsOptions
;
if
(
m_pAddonOptions
.
get
()
==
0
)
m_pAddonOptions
.
reset
(
new
AddonsOptions
)
;
uno
::
Reference
<
ui
::
XUIElementFactory
>
xUIElementFactory
(
m_xUIElementFactoryManager
);
uno
::
Reference
<
frame
::
XFrame
>
xFrame
(
m_xFrame
);
...
...
@@ -1587,12 +1583,12 @@ sal_Bool ToolbarLayoutManager::implts_readWindowStateData( const rtl::OUString&
aWriteLock
.
lock
();
bool
bGlobalSettings
(
m_bGlobalSettings
);
GlobalSettings
*
pGlobalSettings
(
0
);
if
(
m_pGlobalSettings
==
0
)
if
(
m_pGlobalSettings
.
get
()
==
0
)
{
m_pGlobalSettings
=
new
GlobalSettings
(
m_xSMGR
);
m_pGlobalSettings
.
reset
(
new
GlobalSettings
(
m_xSMGR
)
);
bGetSettingsState
=
true
;
}
pGlobalSettings
=
m_pGlobalSettings
;
pGlobalSettings
=
m_pGlobalSettings
.
get
()
;
aWriteLock
.
unlock
();
try
...
...
framework/source/layoutmanager/toolbarlayoutmanager.hxx
Dosyayı görüntüle @
335f7fa8
...
...
@@ -35,6 +35,7 @@
/** Attention: stl headers must(!) be included at first. Otherwhise it can make trouble
with solaris headers ...
*/
#include <memory>
#include <vector>
//_________________________________________________________________________________________________________________
...
...
@@ -319,8 +320,8 @@ class ToolbarLayoutManager : public ::cppu::WeakImplHelper3< ::com::sun::star::a
Rectangle
m_aDockingAreaOffsets
;
DockingOperation
m_eDockOperation
;
AddonsOptions
*
m_pAddonOptions
;
GlobalSettings
*
m_pGlobalSettings
;
std
::
auto_ptr
<
AddonsOptions
>
m_pAddonOptions
;
std
::
auto_ptr
<
GlobalSettings
>
m_pGlobalSettings
;
bool
m_bComponentAttached
;
bool
m_bMustLayout
;
...
...
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