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
a6e5ac3b
Kaydet (Commit)
a6e5ac3b
authored
Mar 23, 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: add some safety net asserts
Change-Id: I5fa19ec6161ab97eb7df8b52a268917f41ae2205
üst
489a4fb3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
outdev.hxx
include/vcl/outdev.hxx
+2
-0
vclptr.hxx
include/vcl/vclptr.hxx
+1
-0
No files found.
include/vcl/outdev.hxx
Dosyayı görüntüle @
a6e5ac3b
...
@@ -274,11 +274,13 @@ private:
...
@@ -274,11 +274,13 @@ private:
inline
void
acquire
()
const
inline
void
acquire
()
const
{
{
assert
(
!
mbDisposed
);
mnRefCnt
++
;
mnRefCnt
++
;
}
}
inline
void
release
()
const
inline
void
release
()
const
{
{
assert
(
mnRefCnt
>
0
);
if
(
!--
mnRefCnt
)
if
(
!--
mnRefCnt
)
delete
const_cast
<
OutputDevice
*>
(
this
);
delete
const_cast
<
OutputDevice
*>
(
this
);
}
}
...
...
include/vcl/vclptr.hxx
Dosyayı görüntüle @
a6e5ac3b
...
@@ -270,6 +270,7 @@ public:
...
@@ -270,6 +270,7 @@ public:
~
ScopedVclPtr
()
~
ScopedVclPtr
()
{
{
VclPtr
<
reference_type
>::
disposeAndClear
();
VclPtr
<
reference_type
>::
disposeAndClear
();
assert
(
VclPtr
<
reference_type
>::
get
()
==
nullptr
);
// make sure there are no lingering references
}
}
private
:
private
:
// Most likely we don't want this default copy-construtor.
// Most likely we don't want this default copy-construtor.
...
...
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