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
c3364742
Kaydet (Commit)
c3364742
authored
Eyl 21, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cid#1371252: Add move semantics
Change-Id: I7cf1b4c92fdddbef681654c780a9ee466c33ce0b
üst
dec8da2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
typedescription.hxx
include/typelib/typedescription.hxx
+15
-0
No files found.
include/typelib/typedescription.hxx
Dosyayı görüntüle @
c3364742
...
...
@@ -82,6 +82,10 @@ public:
@param rDescr another TypeDescription
*/
inline
TypeDescription
(
const
TypeDescription
&
rDescr
);
#if defined LIBO_INTERNAL_ONLY
TypeDescription
(
TypeDescription
&&
other
)
:
_pTypeDescr
(
other
.
_pTypeDescr
)
{
other
.
_pTypeDescr
=
nullptr
;
}
#endif
/** Constructor:
@param pTypeName a type name
...
...
@@ -110,6 +114,17 @@ public:
inline
TypeDescription
&
SAL_CALL
operator
=
(
const
TypeDescription
&
rTypeDescr
)
{
return
this
->
operator
=
(
rTypeDescr
.
get
()
);
}
#if defined LIBO_INTERNAL_ONLY
TypeDescription
&
operator
=
(
TypeDescription
&&
other
)
{
if
(
_pTypeDescr
!=
nullptr
)
{
typelib_typedescription_release
(
_pTypeDescr
);
}
_pTypeDescr
=
other
.
_pTypeDescr
;
other
.
_pTypeDescr
=
nullptr
;
return
*
this
;
}
#endif
/** Tests whether two type descriptions are equal.
@param pTypeDescr another type description
...
...
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