From 6e4a2540d4d8ad9e141b87ac3d2123d1c96366ef Mon Sep 17 00:00:00 2001 From: Noel Grandin 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 --- include/typelib/typedescription.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/typelib/typedescription.hxx') diff --git a/include/typelib/typedescription.hxx b/include/typelib/typedescription.hxx index ae8599bb1fdd..bfe7596801ea 100644 --- a/include/typelib/typedescription.hxx +++ b/include/typelib/typedescription.hxx @@ -83,7 +83,7 @@ public: */ inline TypeDescription( const TypeDescription & rDescr ); #if defined LIBO_INTERNAL_ONLY - TypeDescription(TypeDescription && other): _pTypeDescr(other._pTypeDescr) + TypeDescription(TypeDescription && other) noexcept : _pTypeDescr(other._pTypeDescr) { other._pTypeDescr = nullptr; } #endif /** Constructor: @@ -115,7 +115,7 @@ public: { return this->operator =( rTypeDescr.get() ); } #if defined LIBO_INTERNAL_ONLY - TypeDescription & operator =(TypeDescription && other) { + TypeDescription & operator =(TypeDescription && other) noexcept { if (_pTypeDescr != nullptr) { typelib_typedescription_release(_pTypeDescr); } -- cgit