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
8c87cfc2
Kaydet (Commit)
8c87cfc2
authored
Ara 10, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove listeners upon dispose
Change-Id: I9cee05fe75ba87da98ee3d4616099583fa03470d
üst
c88c1871
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
session.cxx
vcl/source/app/session.cxx
+18
-0
No files found.
vcl/source/app/session.cxx
Dosyayı görüntüle @
8c87cfc2
...
...
@@ -82,6 +82,8 @@ class VCLSession:
virtual
void
SAL_CALL
saveDone
(
const
css
::
uno
::
Reference
<
XSessionManagerListener
>&
xListener
)
throw
(
RuntimeException
,
std
::
exception
)
override
;
virtual
sal_Bool
SAL_CALL
cancelShutdown
()
throw
(
RuntimeException
,
std
::
exception
)
override
;
void
SAL_CALL
disposing
()
override
;
void
callSaveRequested
(
bool
bShutdown
,
bool
bCancelable
);
void
callShutdownCancelled
();
void
callInteractionGranted
(
bool
bGranted
);
...
...
@@ -327,6 +329,22 @@ sal_Bool SAL_CALL VCLSession::cancelShutdown() throw( RuntimeException, std::exc
return
m_xSession
&&
m_xSession
->
cancelShutdown
();
}
void
VCLSession
::
disposing
()
{
std
::
list
<
Listener
>
list
;
{
osl
::
MutexGuard
g
(
m_aMutex
);
list
.
swap
(
m_aListeners
);
}
css
::
lang
::
EventObject
src
(
static_cast
<
OWeakObject
*>
(
this
));
for
(
auto
const
&
i
:
list
)
{
try
{
i
.
m_xListener
->
disposing
(
src
);
}
catch
(
css
::
uno
::
RuntimeException
&
e
)
{
SAL_WARN
(
"vcl.app"
,
"ignoring RuntimeException "
<<
e
.
Message
);
}
}
}
// service implementation
OUString
SAL_CALL
vcl_session_getImplementationName
()
...
...
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