summaryrefslogtreecommitdiff
path: root/sd/source/ui/app
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-10-06 09:58:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-10-06 14:13:28 +0200
commit516f7dafd009988f3fc58041bc265b836f4b7322 (patch)
tree4ba762478a324f9a303c052f46b69ff0eaf55262 /sd/source/ui/app
parentb693d19884a09b5f841b30f2e8b586778584ed16 (diff)
SdrModel::getUnoModel can use XModel instead of XInterface
Change-Id: Ica10c62066881ba86099d2057ff6fe20e0084a85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157632 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/app')
-rw-r--r--sd/source/ui/app/sdxfer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx
index 693dd399c321..11fc9017f64d 100644
--- a/sd/source/ui/app/sdxfer.cxx
+++ b/sd/source/ui/app/sdxfer.cxx
@@ -574,8 +574,8 @@ bool SdTransferable::WriteObject( tools::SvRef<SotTempStream>& rxOStm, void* pOb
pDoc->BurnInStyleSheetAttributes();
rxOStm->SetBufferSize( 16348 );
- Reference< XComponent > xComponent( new SdXImpressDocument( pDoc, true ) );
- pDoc->setUnoModel( Reference< XInterface >::query( xComponent ) );
+ rtl::Reference< SdXImpressDocument > xComponent( new SdXImpressDocument( pDoc, true ) );
+ pDoc->setUnoModel( xComponent );
{
css::uno::Reference<css::io::XOutputStream> xDocOut( new utl::OOutputStreamWrapper( *rxOStm ) );