From 032cf092f2476ad7e0009274073b467d36c6bd47 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Sep 2024 16:13:41 +0200 Subject: use more concrete UNO types in sd Change-Id: I04578521e86759af7fdd6d2d19d8313ed8bc1bf1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173457 Reviewed-by: Noel Grandin Tested-by: Jenkins --- sd/source/ui/view/drviews4.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sd/source/ui/view/drviews4.cxx') 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 #include #include +#include #include #include @@ -99,7 +100,9 @@ void DrawViewShell::DeleteActualPage() try { - Reference xDrawPagesSupplier( GetDoc()->getUnoModel(), UNO_QUERY_THROW ); + rtl::Reference xDrawPagesSupplier( GetDoc()->getUnoModel() ); + if (!xDrawPagesSupplier) + return; Reference xPages( xDrawPagesSupplier->getDrawPages(), UNO_SET_THROW ); sal_uInt16 nPageCount = GetDoc()->GetSdPageCount(mePageKind); SdPage* pPage = nullptr; -- cgit