summaryrefslogtreecommitdiff
path: root/extensions/source/scanner/scanunx.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/scanner/scanunx.cxx')
-rw-r--r--extensions/source/scanner/scanunx.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/extensions/source/scanner/scanunx.cxx b/extensions/source/scanner/scanunx.cxx
index 6a81f5fbf6e3..44787d46d0e6 100644
--- a/extensions/source/scanner/scanunx.cxx
+++ b/extensions/source/scanner/scanunx.cxx
@@ -157,10 +157,9 @@ void ScannerThread::run()
osl_setThreadName("ScannerThread");
osl::MutexGuard aGuard( m_pHolder->m_aProtector );
- BitmapTransporter* pTransporter = new BitmapTransporter;
- Reference< XInterface > aIf( static_cast< OWeakObject* >( pTransporter ) );
+ rtl::Reference<BitmapTransporter> pTransporter = new BitmapTransporter;
- m_pHolder->m_xBitmap.set( aIf, UNO_QUERY );
+ m_pHolder->m_xBitmap = pTransporter;
m_pHolder->m_bBusy = true;
if( m_pHolder->m_aSane.IsOpen() )