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
6cb33f4d
Kaydet (Commit)
6cb33f4d
authored
Mar 13, 2015
tarafından
Noel Grandin
Kaydeden (comit)
Michael Meeks
Nis 10, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vclwidget: call disposeOnce from VclPtr::disposeAndClear
Change-Id: Ia8c438984409a7b719f5756f9be30ba9e90c57dc
üst
d7a84ce8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
vclptr.hxx
include/vcl/vclptr.hxx
+1
-1
window.cxx
vcl/source/window/window.cxx
+7
-10
No files found.
include/vcl/vclptr.hxx
Dosyayı görüntüle @
6cb33f4d
...
@@ -179,7 +179,7 @@ public:
...
@@ -179,7 +179,7 @@ public:
::
rtl
::
Reference
<
reference_type
>
aTmp
(
m_rInnerRef
);
::
rtl
::
Reference
<
reference_type
>
aTmp
(
m_rInnerRef
);
m_rInnerRef
.
clear
();
// we should use some 'swap' method ideally ;-)
m_rInnerRef
.
clear
();
// we should use some 'swap' method ideally ;-)
if
(
aTmp
.
get
())
{
if
(
aTmp
.
get
())
{
aTmp
->
dispose
();
aTmp
->
dispose
Once
();
}
}
}
}
...
...
vcl/source/window/window.cxx
Dosyayı görüntüle @
6cb33f4d
...
@@ -139,18 +139,15 @@ bool Window::IsDisposed() const
...
@@ -139,18 +139,15 @@ bool Window::IsDisposed() const
void Window::disposeOnce()
void Window::disposeOnce()
{
{
if
(
!
IsDisposed
())
if (!mpWindowImpl || mpWindowImpl->mbInDispose)
dispose
();
return;
mpWindowImpl->mbInDispose = true;
dispose();
}
}
void Window::dispose()
void Window::dispose()
{
{
if
(
IsDisposed
())
assert( mpWindowImpl && mpWindowImpl->mbInDispose ); // should only be called from disposeOnce()
return
;
assert
(
!
mpWindowImpl
->
mbInDispose
&&
"vcl::Window - already in dispose()"
);
mpWindowImpl
->
mbInDispose
=
true
;
assert( !mpWindowImpl->mpParent ||
assert( !mpWindowImpl->mpParent ||
!mpWindowImpl->mpParent->IsDisposed() ||
!mpWindowImpl->mpParent->IsDisposed() ||
"vcl::Window child should have its parent disposed first" );
"vcl::Window child should have its parent disposed first" );
...
@@ -605,8 +602,8 @@ WindowImpl::WindowImpl( WindowType nType )
...
@@ -605,8 +602,8 @@ WindowImpl::WindowImpl( WindowType nType )
mpOverlapWindow = NULL; // first overlap parent
mpOverlapWindow = NULL; // first overlap parent
mpBorderWindow = NULL; // Border-Window
mpBorderWindow = NULL; // Border-Window
mpClientWindow = NULL; // Client-Window of a FrameWindow
mpClientWindow = NULL; // Client-Window of a FrameWindow
mpParent
=
NULL
;
// parent (in
k
l. BorderWindow)
mpParent = NULL; // parent (in
c
l. BorderWindow)
mpRealParent
=
NULL
;
// real parent (ex
k
l. BorderWindow)
mpRealParent = NULL; // real parent (ex
c
l. BorderWindow)
mpFirstChild = NULL; // first child window
mpFirstChild = NULL; // first child window
mpLastChild = NULL; // last child window
mpLastChild = NULL; // last child window
mpFirstOverlap = NULL; // first overlap window (only set in overlap windows)
mpFirstOverlap = NULL; // first overlap window (only set in overlap windows)
...
...
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