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
74fbfde3
Kaydet (Commit)
74fbfde3
authored
Agu 25, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cid#1371173 Missing move assignment operator
Change-Id: Idf179403426d9714fa73d0c3370a6debc30a0431
üst
4e07987c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
weakbase.h
include/tools/weakbase.h
+7
-1
weakbase.hxx
include/tools/weakbase.hxx
+14
-0
No files found.
include/tools/weakbase.h
Dosyayı görüntüle @
74fbfde3
...
...
@@ -78,9 +78,12 @@ public:
/** constructs a reference with a pointer to a class derived from WeakBase */
inline
WeakReference
(
reference_type
*
pReference
);
/** constructs a reference
with
another reference */
/** constructs a reference
from
another reference */
inline
WeakReference
(
const
WeakReference
<
reference_type
>&
rWeakRef
);
/** constructs a reference from another reference */
inline
WeakReference
(
WeakReference
<
reference_type
>&&
rWeakRef
);
inline
~
WeakReference
();
/** returns true if the reference object is not null and still alive */
...
...
@@ -113,6 +116,9 @@ public:
/** the assignment operator */
inline
WeakReference
<
reference_type
>&
operator
=
(
const
WeakReference
<
reference_type
>
&
handle
);
/** the move assignment operator */
inline
WeakReference
<
reference_type
>&
operator
=
(
WeakReference
<
reference_type
>
&&
handle
);
private
:
rtl
::
Reference
<
WeakConnection
<
reference_type
>>
mpWeakConnection
;
};
...
...
include/tools/weakbase.hxx
Dosyayı görüntüle @
74fbfde3
...
...
@@ -48,6 +48,12 @@ inline WeakReference< reference_type >::WeakReference( const WeakReference< refe
mpWeakConnection
=
rWeakRef
.
mpWeakConnection
;
}
template
<
class
reference_type
>
inline
WeakReference
<
reference_type
>::
WeakReference
(
WeakReference
<
reference_type
>&&
rWeakRef
)
{
mpWeakConnection
=
std
::
move
(
rWeakRef
.
mpWeakConnection
);
}
template
<
class
reference_type
>
inline
WeakReference
<
reference_type
>::~
WeakReference
()
{
...
...
@@ -122,6 +128,14 @@ inline WeakReference<reference_type>& WeakReference<reference_type>::operator= (
return
*
this
;
}
template
<
class
reference_type
>
inline
WeakReference
<
reference_type
>&
WeakReference
<
reference_type
>::
operator
=
(
WeakReference
<
reference_type
>&&
rReference
)
{
mpWeakConnection
=
std
::
move
(
rReference
.
mpWeakConnection
);
return
*
this
;
}
template
<
class
reference_type
>
inline
WeakBase
<
reference_type
>::
WeakBase
()
{
...
...
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