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
4f86b7a8
Kaydet (Commit)
4f86b7a8
authored
Eyl 19, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cid#1371142: Move semantics for css::uno::WeakReferenceHelper
Change-Id: I442b2d8061bd7d50cbf832b345a7a63461e26224
üst
2d31990a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
gcc3.map
cppuhelper/source/gcc3.map
+5
-0
weak.cxx
cppuhelper/source/weak.cxx
+10
-0
weakref.hxx
include/cppuhelper/weakref.hxx
+9
-0
No files found.
cppuhelper/source/gcc3.map
Dosyayı görüntüle @
4f86b7a8
...
...
@@ -430,6 +430,11 @@ global:
_ZN4cppu15supportsServiceEPN3com3sun4star4lang12XServiceInfoERKN3rtl8OUStringE; # cppu::supportsService(com::sun::star::lang::XServiceInfo*, rtl::OUString const&)
} UDK_3.8;
LIBO_UDK_5.3 { # LibO 5.3
global:
_ZN3com3sun4star3uno19WeakReferenceHelperaSEOS3_; # com::sun::star::uno::WeakReferenceHelper::operator=(com::sun::star::uno::WeakReferenceHelper&&)
} LIBO_UDK_3.9;
# Unique libstdc++ symbols:
GLIBCXX_3.4 {
global:
...
...
cppuhelper/source/weak.cxx
Dosyayı görüntüle @
4f86b7a8
...
...
@@ -24,7 +24,9 @@
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/queryinterface.hxx>
#include <algorithm>
#include <utility>
using
namespace
osl
;
using
namespace
com
::
sun
::
star
::
uno
;
...
...
@@ -485,6 +487,14 @@ WeakReferenceHelper& WeakReferenceHelper::operator=(const WeakReferenceHelper& r
return
operator
=
(
xInt
);
}
WeakReferenceHelper
&
WeakReferenceHelper
::
operator
=
(
WeakReferenceHelper
&&
other
)
{
clear
();
std
::
swap
(
m_pImpl
,
other
.
m_pImpl
);
return
*
this
;
}
WeakReferenceHelper
&
SAL_CALL
WeakReferenceHelper
::
operator
=
(
const
Reference
<
XInterface
>
&
xInt
)
{
...
...
include/cppuhelper/weakref.hxx
Dosyayı görüntüle @
4f86b7a8
...
...
@@ -63,6 +63,11 @@ public:
*/
WeakReferenceHelper
(
const
WeakReferenceHelper
&
rWeakRef
);
#if defined LIBO_INTERNAL_ONLY
WeakReferenceHelper
(
WeakReferenceHelper
&&
other
)
:
m_pImpl
(
other
.
m_pImpl
)
{
other
.
m_pImpl
=
nullptr
;
}
#endif
/** Initialize this reference with the hard interface reference xInt. If the implementation
behind xInt does not support XWeak or xInt is null then this reference will be null.
...
...
@@ -80,6 +85,10 @@ public:
*/
WeakReferenceHelper
&
SAL_CALL
operator
=
(
const
WeakReferenceHelper
&
rWeakRef
);
#if defined LIBO_INTERNAL_ONLY
WeakReferenceHelper
&
operator
=
(
WeakReferenceHelper
&&
other
);
#endif
/** Releases this reference and takes over hard reference xInt.
If the implementation behind xInt does not support XWeak
or XInt is null, then this reference is null.
...
...
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