Use getXWeak in sot
Change-Id: I68d6b7393b367b68206c92cd65705326c5aeda7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150870 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
@@ -147,7 +147,7 @@ sal_Int32 SAL_CALL FileStreamWrapper_Impl::readBytes(Sequence< sal_Int8 >& aData
|
||||
checkConnected();
|
||||
|
||||
if (nBytesToRead < 0)
|
||||
throw BufferSizeExceededException(OUString(),static_cast<XWeak*>(this));
|
||||
throw BufferSizeExceededException(OUString(), getXWeak());
|
||||
|
||||
std::scoped_lock aGuard( m_aMutex );
|
||||
|
||||
@@ -176,7 +176,7 @@ sal_Int32 SAL_CALL FileStreamWrapper_Impl::readSomeBytes(Sequence< sal_Int8 >& a
|
||||
checkError();
|
||||
|
||||
if (nMaxBytesToRead < 0)
|
||||
throw BufferSizeExceededException(OUString(),static_cast<XWeak*>(this));
|
||||
throw BufferSizeExceededException(OUString(), getXWeak());
|
||||
|
||||
if (m_pSvStream->eof())
|
||||
{
|
||||
@@ -278,7 +278,7 @@ sal_Int64 SAL_CALL FileStreamWrapper_Impl::getLength( )
|
||||
void FileStreamWrapper_Impl::checkConnected()
|
||||
{
|
||||
if ( m_aURL.isEmpty() )
|
||||
throw NotConnectedException(OUString(), static_cast<XWeak*>(this));
|
||||
throw NotConnectedException(OUString(), getXWeak());
|
||||
if ( !m_pSvStream )
|
||||
{
|
||||
m_pSvStream = ::utl::UcbStreamHelper::CreateStream( m_aURL, StreamMode::STD_READ );
|
||||
@@ -295,7 +295,7 @@ void FileStreamWrapper_Impl::checkError()
|
||||
|
||||
if (m_pSvStream->SvStream::GetError() != ERRCODE_NONE)
|
||||
// TODO: really evaluate the error
|
||||
throw NotConnectedException(OUString(), static_cast<XWeak*>(this));
|
||||
throw NotConnectedException(OUString(), getXWeak());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -550,7 +550,7 @@ void SAL_CALL OLESimpleStorage::dispose()
|
||||
|
||||
if ( m_aListenersContainer.getLength(aGuard) )
|
||||
{
|
||||
lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );
|
||||
lang::EventObject aSource( getXWeak() );
|
||||
m_aListenersContainer.disposeAndClear( aGuard, aSource );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user