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
673fe197
Kaydet (Commit)
673fe197
authored
Eyl 30, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1371191 Missing move assignment operator
Change-Id: If543e0685f808cfe72eaa0ff60c87bb3b1a5ea42
üst
e214fab7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
vclwrapper.hxx
include/canvas/vclwrapper.hxx
+14
-2
No files found.
include/canvas/vclwrapper.hxx
Dosyayı görüntüle @
673fe197
...
...
@@ -79,6 +79,12 @@ namespace canvas
mpWrappee
=
nullptr
;
}
VCLObject
(
VCLObject
&&
rOrig
)
:
mpWrappee
(
rOrig
.
mpWrappee
)
{
rOrig
.
mpWrappee
=
nullptr
;
}
// This object has value semantics, thus, forward copy
// to wrappee
VCLObject
(
const
Wrappee
&
rOrig
)
:
...
...
@@ -104,14 +110,20 @@ namespace canvas
return
*
this
;
}
VCLObject
&
operator
=
(
VCLObject
&&
rhs
)
{
std
::
swap
(
mpWrappee
,
rhs
.
mpWrappee
);
return
*
this
;
}
~
VCLObject
()
{
// This here is the whole purpose of the template:
// protecting object deletion with the solar mutex
SolarMutexGuard
aGuard
;
if
(
mpWrappee
)
delete
mpWrappee
;
delete
mpWrappee
;
}
Wrappee
*
operator
->
()
{
return
mpWrappee
;
}
...
...
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