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
c53af84c
Kaydet (Commit)
c53af84c
authored
Eyl 23, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cid#
13711966
: Add move semantics
Change-Id: I7bf2d6f5e5b1d10cde210c814567017680c6a74e
üst
4c182392
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
environment.hxx
include/uno/environment.hxx
+16
-0
No files found.
include/uno/environment.hxx
Dosyayı görüntüle @
c53af84c
...
...
@@ -94,6 +94,11 @@ public:
*/
inline
Environment
(
const
Environment
&
rEnv
);
#if defined LIBO_INTERNAL_ONLY
Environment
(
Environment
&&
other
)
:
_pEnv
(
other
.
_pEnv
)
{
other
.
_pEnv
=
nullptr
;
}
#endif
/** Destructor: releases a set environment.
*/
inline
~
Environment
();
...
...
@@ -112,6 +117,17 @@ public:
inline
Environment
&
SAL_CALL
operator
=
(
const
Environment
&
rEnv
)
{
return
operator
=
(
rEnv
.
_pEnv
);
}
#if defined LIBO_INTERNAL_ONLY
Environment
&
operator
=
(
Environment
&&
other
)
{
if
(
_pEnv
!=
nullptr
)
{
(
*
_pEnv
->
release
)(
_pEnv
);
}
_pEnv
=
other
.
_pEnv
;
other
.
_pEnv
=
nullptr
;
return
*
this
;
}
#endif
/** Provides UNacquired pointer to the set C environment.
@return UNacquired pointer to the C environment struct
...
...
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