diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-03 07:54:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-05 21:17:57 +0200 |
commit | 7e6bae9b1fbf75ca67f432f7bc78dd503600fb86 (patch) | |
tree | 33cbeb3e6a889ad347afea36ce83ee8dc15baab2 /sot | |
parent | 9af1afef1bc24b9fb3bbdf1d4abbb254a683e6cf (diff) |
Improved loplugin:redundantcast, const/static_cast combinations: sot
Change-Id: I32a9d3f9b7cb978c649461e01a802f4356217f8f
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 7c365eb8ac79..abd2a244f1a2 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -284,7 +284,7 @@ sal_Int64 SAL_CALL FileStreamWrapper_Impl::getLength( ) void FileStreamWrapper_Impl::checkConnected() { if ( m_aURL.isEmpty() ) - throw NotConnectedException(OUString(), const_cast<XWeak*>(static_cast<const XWeak*>(this))); + throw NotConnectedException(OUString(), static_cast<XWeak*>(this)); if ( !m_pSvStream ) { m_pSvStream = ::utl::UcbStreamHelper::CreateStream( m_aURL, StreamMode::STD_READ ); @@ -301,7 +301,7 @@ void FileStreamWrapper_Impl::checkError() if (m_pSvStream->SvStream::GetError() != ERRCODE_NONE) // TODO: really evaluate the error - throw NotConnectedException(OUString(), const_cast<XWeak*>(static_cast<const XWeak*>(this))); + throw NotConnectedException(OUString(), static_cast<XWeak*>(this)); } |