summaryrefslogtreecommitdiff
path: root/include/com/sun
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-29 10:35:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-30 08:12:07 +0200
commit6e4a2540d4d8ad9e141b87ac3d2123d1c96366ef (patch)
treec37720e7c9cb051f80aa1294b17b53e23b243187 /include/com/sun
parent0285492a45e9cc19c26e14dcdf297bcc491da4d2 (diff)
new loplugin:noexceptmove
idea from mike kaganski look for places where we can mark move operators as noexcept, which makes some STL operations more efficient Change-Id: Id732b89d1fcadd5ceb0ea2b9d159fed06136330f Reviewed-on: https://gerrit.libreoffice.org/78251 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/com/sun')
-rw-r--r--include/com/sun/star/uno/Reference.h4
-rw-r--r--include/com/sun/star/uno/Reference.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/com/sun/star/uno/Reference.h b/include/com/sun/star/uno/Reference.h
index 5f4c8ddea85f..50afd26a83b4 100644
--- a/include/com/sun/star/uno/Reference.h
+++ b/include/com/sun/star/uno/Reference.h
@@ -307,7 +307,7 @@ public:
@param rRef another reference
*/
- inline Reference( Reference< interface_type > && rRef );
+ inline Reference( Reference< interface_type > && rRef ) noexcept;
#endif
/** Up-casting conversion constructor: Copies interface reference.
@@ -586,7 +586,7 @@ public:
@param rRef an interface reference
@return this reference
*/
- inline Reference< interface_type > & SAL_CALL operator = ( Reference< interface_type > && rRef );
+ inline Reference< interface_type > & SAL_CALL operator = ( Reference< interface_type > && rRef ) noexcept;
#endif
/** Queries given interface reference for type interface_type.
diff --git a/include/com/sun/star/uno/Reference.hxx b/include/com/sun/star/uno/Reference.hxx
index c6869d922d7e..9edbd70d0f88 100644
--- a/include/com/sun/star/uno/Reference.hxx
+++ b/include/com/sun/star/uno/Reference.hxx
@@ -126,7 +126,7 @@ inline Reference< interface_type >::Reference( const Reference< interface_type >
#if defined LIBO_INTERNAL_ONLY
template< class interface_type >
-inline Reference< interface_type >::Reference( Reference< interface_type > && rRef )
+inline Reference< interface_type >::Reference( Reference< interface_type > && rRef ) noexcept
{
_pInterface = rRef._pInterface;
rRef._pInterface = nullptr;
@@ -353,7 +353,7 @@ inline Reference< interface_type > & Reference< interface_type >::operator = (
#if defined LIBO_INTERNAL_ONLY
template< class interface_type >
inline Reference< interface_type > & Reference< interface_type >::operator = (
- Reference< interface_type > && rRef )
+ Reference< interface_type > && rRef ) noexcept
{
if (_pInterface)
_pInterface->release();