diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-04-30 08:20:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-05-02 17:02:28 +0200 |
commit | 10d29c390dd58ed629dd27fe5ed35fae28eceec3 (patch) | |
tree | 7476cbb90fff182c5bec0a5a1ef9c41a3ad29f19 /io | |
parent | a9243e626193ab4efe3a618413886773336a38e6 (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'io')
-rw-r--r-- | io/source/stm/streamhelper.cxx | 2 | ||||
-rw-r--r-- | io/source/stm/streamhelper.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
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<sal_Int8> &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<sal_Int8> &); /// @throws css::io::BufferSizeExceededException void readAt( sal_Int32 nPos, Sequence<sal_Int8> & , 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_Int8> & , 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(); } }; |