From d294d1a32d88174559bd4490a8ee44bc5bb604ea Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 8 Nov 2023 13:38:47 +0200 Subject: [PATCH] loplugin:fieldcast in XMLPageExport Change-Id: I07c5f2a6af46a3952d4fbc617d86174b1e23d518 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159222 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/xmloff/XMLPageExport.hxx | 4 ++-- xmloff/source/style/XMLPageExport.cxx | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/xmloff/XMLPageExport.hxx b/include/xmloff/XMLPageExport.hxx index ba06efc38e08..0a1d7c1cfd23 100644 --- a/include/xmloff/XMLPageExport.hxx +++ b/include/xmloff/XMLPageExport.hxx @@ -38,7 +38,7 @@ class SvXMLExport; class XMLPropertyHandlerFactory; class XMLPropertySetMapper; class SvXMLExportPropertyMapper; - +class XMLPageMasterExportPropMapper; struct XMLPageExportNameEntry { @@ -58,7 +58,7 @@ class XMLOFF_DLLPUBLIC XMLPageExport : public salhelper::SimpleReferenceObject rtl::Reference < XMLPropertyHandlerFactory > m_xPageMasterPropHdlFactory; rtl::Reference < XMLPropertySetMapper > m_xPageMasterPropSetMapper; - rtl::Reference < SvXMLExportPropertyMapper > m_xPageMasterExportPropMapper; + rtl::Reference < XMLPageMasterExportPropMapper > m_xPageMasterExportPropMapper; rtl::Reference m_xPageMasterDrawingPagePropSetMapper; rtl::Reference m_xPageMasterDrawingPageExportPropMapper; diff --git a/xmloff/source/style/XMLPageExport.cxx b/xmloff/source/style/XMLPageExport.cxx index 500f9463b68e..c827eb14bdde 100644 --- a/xmloff/source/style/XMLPageExport.cxx +++ b/xmloff/source/style/XMLPageExport.cxx @@ -242,8 +242,7 @@ XMLPageExport::XMLPageExport(SvXMLExport & rExp) xProps->getPropertyValue("GutterAtTop") >>= bGutterAtTop; if (bGutterAtTop) { - static_cast(m_xPageMasterExportPropMapper.get()) - ->SetGutterAtTop(true); + m_xPageMasterExportPropMapper->SetGutterAtTop(true); } }