diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-12 08:21:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-15 14:05:41 +0000 |
commit | 6e72f0251bb8767942edf74f612547c12ca0cdf1 (patch) | |
tree | 0785de1a2f8995d1d4ede7889541bda9b59f893f /unotools/source | |
parent | 7da80de2c75e048a08ea6e923a9f433a638a9f12 (diff) |
new loplugin unnecessary override
Change-Id: I88d3e33823d68745b98625050a8a274f9ef04bcb
Reviewed-on: https://gerrit.libreoffice.org/27135
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/streaming/streamhelper.cxx | 10 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 9 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.hxx | 1 |
3 files changed, 2 insertions, 18 deletions
diff --git a/unotools/source/streaming/streamhelper.cxx b/unotools/source/streaming/streamhelper.cxx index 25137c66081f..9efb0e992419 100644 --- a/unotools/source/streaming/streamhelper.cxx +++ b/unotools/source/streaming/streamhelper.cxx @@ -22,16 +22,6 @@ namespace utl { -void SAL_CALL OInputStreamHelper::acquire() throw () -{ - InputStreamHelper_Base::acquire(); -} - -void SAL_CALL OInputStreamHelper::release() throw () -{ - InputStreamHelper_Base::release(); -} - sal_Int32 SAL_CALL OInputStreamHelper::readBytes(css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) { diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 1e88ab7287b4..bc9d74820f58 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -1049,7 +1049,7 @@ UcbLockBytes::UcbLockBytes() , m_bDontClose( false ) , m_bStreamValid (false) { - SetSynchronMode( true ); + SetSynchronMode(); } UcbLockBytes::~UcbLockBytes() @@ -1168,11 +1168,6 @@ void UcbLockBytes::terminate_Impl() } } -void UcbLockBytes::SetSynchronMode (bool bSynchron) -{ - SvLockBytes::SetSynchronMode (bSynchron); -} - ErrCode UcbLockBytes::ReadAt(sal_uInt64 const nPos, void *pBuffer, sal_uLong nCount, sal_uLong *pRead) const { @@ -1398,7 +1393,7 @@ UcbLockBytesRef UcbLockBytes::CreateLockBytes( const Reference < XContent >& xCo return nullptr; UcbLockBytesRef xLockBytes = new UcbLockBytes; - xLockBytes->SetSynchronMode( true ); + xLockBytes->SetSynchronMode(); Reference< XActiveDataControl > xSink; if ( eOpenMode & StreamMode::WRITE ) xSink = static_cast<XActiveDataControl*>(new UcbStreamer_Impl( xLockBytes )); diff --git a/unotools/source/ucbhelper/ucblockbytes.hxx b/unotools/source/ucbhelper/ucblockbytes.hxx index ae3dbb6c7d21..875f5a03d6f3 100644 --- a/unotools/source/ucbhelper/ucblockbytes.hxx +++ b/unotools/source/ucbhelper/ucblockbytes.hxx @@ -102,7 +102,6 @@ public: static UcbLockBytesRef CreateLockBytes( const css::uno::Reference < css::io::XStream >& xContent ); // SvLockBytes - virtual void SetSynchronMode (bool bSynchron) override; virtual ErrCode ReadAt(sal_uInt64 nPos, void *pBuffer, sal_uLong nCount, sal_uLong *pRead) const override; virtual ErrCode WriteAt(sal_uInt64, const void*, sal_uLong, sal_uLong *pWritten) override; virtual ErrCode Flush() const override; |