summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/ucbstorage.cxx4
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));
}