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/registry/registry.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/registry') diff --git a/include/registry/registry.hxx b/include/registry/registry.hxx index 200d91b4f426..9e264f4a30bd 100644 --- a/include/registry/registry.hxx +++ b/include/registry/registry.hxx @@ -90,7 +90,7 @@ public: /// Copy constructor inline Registry(const Registry& toCopy); - Registry(Registry && other): m_pApi(other.m_pApi), m_hImpl(other.m_hImpl) + Registry(Registry && other) noexcept : m_pApi(other.m_pApi), m_hImpl(other.m_hImpl) { other.m_hImpl = nullptr; } /// Destructor. The Destructor close the registry if it is open. -- cgit