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
2bd18402
Kaydet (Commit)
2bd18402
authored
Eyl 20, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cid#1371306: Add move semantics
Change-Id: Id669a84742cc4ffa3bb9f225af7fa4d218999681
üst
f0f60075
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
registry.hxx
include/registry/registry.hxx
+12
-0
No files found.
include/registry/registry.hxx
Dosyayı görüntüle @
2bd18402
...
...
@@ -90,12 +90,24 @@ public:
/// Copy constructor
inline
Registry
(
const
Registry
&
toCopy
);
Registry
(
Registry
&&
other
)
:
m_pApi
(
other
.
m_pApi
),
m_hImpl
(
other
.
m_hImpl
)
{
other
.
m_hImpl
=
nullptr
;
}
/// Destructor. The Destructor close the registry if it is open.
inline
~
Registry
();
/// Assign operator
inline
Registry
&
operator
=
(
const
Registry
&
toAssign
);
Registry
&
operator
=
(
Registry
&&
other
)
{
if
(
m_hImpl
!=
nullptr
)
{
m_pApi
->
release
(
m_hImpl
);
}
m_hImpl
=
other
.
m_hImpl
;
other
.
m_hImpl
=
nullptr
;
return
*
this
;
}
/// checks if the registry points to a valid registry data file.
inline
bool
isValid
()
const
;
...
...
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