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 --- io/source/stm/streamhelper.cxx | 2 +- io/source/stm/streamhelper.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'io') diff --git a/io/source/stm/streamhelper.cxx b/io/source/stm/streamhelper.cxx index 4a2df5891be1..0933ac966f8f 100644 --- a/io/source/stm/streamhelper.cxx +++ b/io/source/stm/streamhelper.cxx @@ -147,7 +147,7 @@ void MemRingBuffer::writeAt( sal_Int32 nPos, const Sequence &seq ) } -sal_Int32 MemRingBuffer::getSize() const throw() +sal_Int32 MemRingBuffer::getSize() const noexcept { return m_nOccupiedBuffer; } diff --git a/io/source/stm/streamhelper.hxx b/io/source/stm/streamhelper.hxx index 6d49003e9d77..8cacaf1f2b30 100644 --- a/io/source/stm/streamhelper.hxx +++ b/io/source/stm/streamhelper.hxx @@ -42,7 +42,7 @@ public: void writeAt( sal_Int32 nPos, const Sequence &); /// @throws css::io::BufferSizeExceededException void readAt( sal_Int32 nPos, Sequence & , sal_Int32 nBytesToRead ) const; - sal_Int32 getSize() const throw(); + sal_Int32 getSize() const noexcept; /// @throws css::io::BufferSizeExceededException void forgetFromStart(sal_Int32 nBytesToForget); @@ -75,7 +75,7 @@ public: void read( Sequence & , sal_Int32 nBytesToRead ); /// @throws css::io::BufferSizeExceededException void skip( sal_Int32 nBytesToSkip ); - sal_Int32 getSize() const throw() + sal_Int32 getSize() const noexcept { return MemRingBuffer::getSize(); } }; -- cgit