summaryrefslogtreecommitdiff
path: root/io/source/stm
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-04-23 20:14:07 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-05-27 18:08:00 +0200
commit87276a497d9aa8a3f8ac0bfceb75d64938945f9a (patch)
treed9fe1c4aac4ce27488259bf3f2143575761fa8d6 /io/source/stm
parentefcbd2306f0310809f2d6f1db086b839055c77f6 (diff)
Use getXWeak in io
Change-Id: If2b40ecdca67c6d82ff1a87443cb8533401e9ae8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150856 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'io/source/stm')
-rw-r--r--io/source/stm/opump.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/io/source/stm/opump.cxx b/io/source/stm/opump.cxx
index fc751b677f95..df3e6132319d 100644
--- a/io/source/stm/opump.cxx
+++ b/io/source/stm/opump.cxx
@@ -263,14 +263,14 @@ void Pump::run()
if( ! rInput.is() )
{
- throw NotConnectedException( "no input stream set", static_cast<OWeakObject*>(this) );
+ throw NotConnectedException( "no input stream set", getXWeak() );
}
Sequence< sal_Int8 > aData;
while( rInput->readSomeBytes( aData, 65536 ) )
{
if( ! rOutput.is() )
{
- throw NotConnectedException( "no output stream set", static_cast<OWeakObject*>(this) );
+ throw NotConnectedException( "no output stream set", getXWeak() );
}
rOutput->writeBytes( aData );
osl_yieldThread();