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
aa881ba9
Kaydet (Commit)
aa881ba9
authored
Ock 15, 2018
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:useuniqueptr in ODocumentCloser
Change-Id: I7f985e4f63631909365560b8409a33180738043f
üst
5ed542f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
documentcloser.cxx
svtools/source/hatchwindow/documentcloser.cxx
+2
-12
No files found.
svtools/source/hatchwindow/documentcloser.cxx
Dosyayı görüntüle @
aa881ba9
...
...
@@ -49,13 +49,12 @@ class ODocumentCloser : public ::cppu::WeakImplHelper< css::lang::XComponent,
{
::
osl
::
Mutex
m_aMutex
;
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
m_xFrame
;
::
comphelper
::
OInterfaceContainerHelper2
*
m_pListenersContainer
;
// list of listeners
std
::
unique_ptr
<::
comphelper
::
OInterfaceContainerHelper2
>
m_pListenersContainer
;
// list of listeners
bool
m_bDisposed
;
public
:
explicit
ODocumentCloser
(
const
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
aArguments
);
virtual
~
ODocumentCloser
()
override
;
// XComponent
virtual
void
SAL_CALL
dispose
()
override
;
...
...
@@ -165,15 +164,6 @@ ODocumentCloser::ODocumentCloser(const css::uno::Sequence< css::uno::Any >& aArg
}
ODocumentCloser
::~
ODocumentCloser
()
{
if
(
m_pListenersContainer
)
{
delete
m_pListenersContainer
;
m_pListenersContainer
=
nullptr
;
}
}
// XComponent
void
SAL_CALL
ODocumentCloser
::
dispose
()
...
...
@@ -206,7 +196,7 @@ void SAL_CALL ODocumentCloser::addEventListener( const uno::Reference< lang::XEv
throw
lang
::
DisposedException
();
// TODO
if
(
!
m_pListenersContainer
)
m_pListenersContainer
=
new
::
comphelper
::
OInterfaceContainerHelper2
(
m_aMutex
);
m_pListenersContainer
.
reset
(
new
::
comphelper
::
OInterfaceContainerHelper2
(
m_aMutex
)
);
m_pListenersContainer
->
addInterface
(
xListener
);
}
...
...
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