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
9dbb9f9a
Kaydet (Commit)
9dbb9f9a
authored
Eyl 20, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cid#1371291: Add move semantics
Change-Id: I9bca3413e023b6909fbf75e567ed75739189bc43
üst
49f11e4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
pipe.hxx
include/osl/pipe.hxx
+15
-0
pipe_decl.hxx
include/osl/pipe_decl.hxx
+8
-0
No files found.
include/osl/pipe.hxx
Dosyayı görüntüle @
9dbb9f9a
...
...
@@ -50,6 +50,11 @@ namespace osl
osl_acquirePipe
(
m_handle
);
}
#if defined LIBO_INTERNAL_ONLY
Pipe
::
Pipe
(
Pipe
&&
other
)
:
m_handle
(
other
.
m_handle
)
{
other
.
m_handle
=
nullptr
;
}
#endif
inline
Pipe
::
Pipe
(
oslPipe
pipe
,
__sal_NoAcquire
)
:
m_handle
(
pipe
)
...
...
@@ -91,6 +96,16 @@ namespace osl
return
*
this
;
}
#if defined LIBO_INTERNAL_ONLY
Pipe
&
Pipe
::
operator
=
(
Pipe
&&
other
)
{
if
(
m_handle
!=
nullptr
)
{
osl_releasePipe
(
m_handle
);
}
m_handle
=
other
.
m_handle
;
other
.
m_handle
=
nullptr
;
return
*
this
;
}
#endif
inline
Pipe
&
SAL_CALL
Pipe
::
operator
=
(
oslPipe
pipe
)
{
...
...
include/osl/pipe_decl.hxx
Dosyayı görüntüle @
9dbb9f9a
...
...
@@ -58,6 +58,10 @@ public:
*/
inline
Pipe
(
const
Pipe
&
pipe
);
#if defined LIBO_INTERNAL_ONLY
inline
Pipe
(
Pipe
&&
other
);
#endif
/** Constructs a Pipe reference without acquiring the handle
*/
inline
Pipe
(
oslPipe
pipe
,
__sal_NoAcquire
noacquire
);
...
...
@@ -103,6 +107,10 @@ public:
*/
inline
Pipe
&
SAL_CALL
operator
=
(
const
Pipe
&
pipe
);
#if defined LIBO_INTERNAL_ONLY
inline
Pipe
&
operator
=
(
Pipe
&&
other
);
#endif
/** Assignment operator. If pipe was already created, the old one will
be discarded.
*/
...
...
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