From 6e4a2540d4d8ad9e141b87ac3d2123d1c96366ef Mon Sep 17 00:00:00 2001 From: Noel Grandin <noel.grandin@collabora.co.uk> Date: Thu, 29 Aug 2019 10:35:23 +0200 Subject: 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> --- include/cppuhelper/weakref.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/cppuhelper') diff --git a/include/cppuhelper/weakref.hxx b/include/cppuhelper/weakref.hxx index cd05d3bee39b..c681284bac77 100644 --- a/include/cppuhelper/weakref.hxx +++ b/include/cppuhelper/weakref.hxx @@ -64,7 +64,7 @@ public: WeakReferenceHelper( const WeakReferenceHelper & rWeakRef ); #if defined LIBO_INTERNAL_ONLY - WeakReferenceHelper(WeakReferenceHelper && other): m_pImpl(other.m_pImpl) + WeakReferenceHelper(WeakReferenceHelper && other) noexcept : m_pImpl(other.m_pImpl) { other.m_pImpl = nullptr; } #endif -- cgit