summaryrefslogtreecommitdiff
path: root/include/uno
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/uno
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/uno')
-rw-r--r--include/uno/dispatcher.hxx2
-rw-r--r--include/uno/environment.hxx2
-rw-r--r--include/uno/mapping.hxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/include/uno/dispatcher.hxx b/include/uno/dispatcher.hxx
index bfd00d46b374..f23268e55593 100644
--- a/include/uno/dispatcher.hxx
+++ b/include/uno/dispatcher.hxx
@@ -59,7 +59,7 @@ public:
inline UnoInterfaceReference( UnoInterfaceReference const & ref );
#if defined LIBO_INTERNAL_ONLY
- UnoInterfaceReference(UnoInterfaceReference && other):
+ UnoInterfaceReference(UnoInterfaceReference && other) noexcept :
m_pUnoI(other.m_pUnoI)
{ other.m_pUnoI = nullptr; }
#endif
diff --git a/include/uno/environment.hxx b/include/uno/environment.hxx
index 5d5ef86021ef..0484790cfa36 100644
--- a/include/uno/environment.hxx
+++ b/include/uno/environment.hxx
@@ -95,7 +95,7 @@ public:
inline Environment( const Environment & rEnv );
#if defined LIBO_INTERNAL_ONLY
- Environment(Environment && other): _pEnv(other._pEnv)
+ Environment(Environment && other) noexcept : _pEnv(other._pEnv)
{ other._pEnv = nullptr; }
#endif
diff --git a/include/uno/mapping.hxx b/include/uno/mapping.hxx
index a575f251539f..be21909eb5c6 100644
--- a/include/uno/mapping.hxx
+++ b/include/uno/mapping.hxx
@@ -111,7 +111,7 @@ public:
inline Mapping( const Mapping & rMapping );
#if defined LIBO_INTERNAL_ONLY
- Mapping(Mapping && other): _pMapping(other._pMapping)
+ Mapping(Mapping && other) noexcept : _pMapping(other._pMapping)
{ other._pMapping = nullptr; }
#endif
@@ -134,7 +134,7 @@ public:
{ return operator = ( rMapping._pMapping ); }
#if defined LIBO_INTERNAL_ONLY
- Mapping & operator =(Mapping && other) {
+ Mapping & operator =(Mapping && other) noexcept {
if (_pMapping != nullptr) {
(*_pMapping->release)(_pMapping);
}