diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-16 16:13:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-17 07:28:06 +0200 |
commit | 032cf092f2476ad7e0009274073b467d36c6bd47 (patch) | |
tree | 06dd4839ddf2f474fd624ffe340f11a77ffae412 /sd/source/ui/view/drviews4.cxx | |
parent | 508d1dd7ac4ff2c2c8d0e43343f41e2b4f0b55c5 (diff) |
use more concrete UNO types in sd
Change-Id: I04578521e86759af7fdd6d2d19d8313ed8bc1bf1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173457
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'sd/source/ui/view/drviews4.cxx')
-rw-r--r-- | sd/source/ui/view/drviews4.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx index 7bd35adfb4c9..b0ce3a71e0ca 100644 --- a/sd/source/ui/view/drviews4.cxx +++ b/sd/source/ui/view/drviews4.cxx @@ -59,6 +59,7 @@ #include <svx/bmpmask.hxx> #include <LayerTabBar.hxx> #include <ViewShellBase.hxx> +#include <unomodel.hxx> #include <SlideSorterViewShell.hxx> #include <svx/svditer.hxx> @@ -99,7 +100,9 @@ void DrawViewShell::DeleteActualPage() try { - Reference<XDrawPagesSupplier> xDrawPagesSupplier( GetDoc()->getUnoModel(), UNO_QUERY_THROW ); + rtl::Reference<SdXImpressDocument> xDrawPagesSupplier( GetDoc()->getUnoModel() ); + if (!xDrawPagesSupplier) + return; Reference<XDrawPages> xPages( xDrawPagesSupplier->getDrawPages(), UNO_SET_THROW ); sal_uInt16 nPageCount = GetDoc()->GetSdPageCount(mePageKind); SdPage* pPage = nullptr; |