From 10d29c390dd58ed629dd27fe5ed35fae28eceec3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 30 Apr 2021 08:20:03 +0200 Subject: throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite Change-Id: I076f16d0536b534abf0ced4d76051eadb4c0e033 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114949 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- binaryurp/source/binaryany.hxx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'binaryurp/source/binaryany.hxx') diff --git a/binaryurp/source/binaryany.hxx b/binaryurp/source/binaryany.hxx index fdf52216a154..c04fe8f8624a 100644 --- a/binaryurp/source/binaryany.hxx +++ b/binaryurp/source/binaryany.hxx @@ -29,31 +29,31 @@ namespace binaryurp { class BinaryAny { public: - BinaryAny() throw (); + BinaryAny() noexcept; BinaryAny(com::sun::star::uno::TypeDescription const & type, void * value) - throw (); + noexcept; - explicit BinaryAny(uno_Any const & raw) throw (); + explicit BinaryAny(uno_Any const & raw) noexcept; // takes over raw.pData (but copies raw.pType); raw must not be passed // to uno_any_destruct - BinaryAny(BinaryAny const & other) throw (); + BinaryAny(BinaryAny const & other) noexcept; - BinaryAny(BinaryAny && other) throw (); + BinaryAny(BinaryAny && other) noexcept; - ~BinaryAny() throw (); + ~BinaryAny() noexcept; - BinaryAny & operator =(BinaryAny const & other) throw (); + BinaryAny & operator =(BinaryAny const & other) noexcept; - BinaryAny & operator =(BinaryAny && other) throw (); + BinaryAny & operator =(BinaryAny && other) noexcept; - uno_Any& get() throw () { return data_; } + uno_Any& get() noexcept { return data_; } - com::sun::star::uno::TypeDescription getType() const throw (); + com::sun::star::uno::TypeDescription getType() const noexcept; void * getValue(com::sun::star::uno::TypeDescription const & type) const - throw (); + noexcept; private: mutable uno_Any data_; -- cgit