summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-11-08 13:38:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-11-10 12:35:26 +0100
commitd294d1a32d88174559bd4490a8ee44bc5bb604ea (patch)
tree6cb87b050feda9bc4dadfe286f73d6abc971dc5d
parent86441791e2ace0517025649ae4bbc33c371e5947 (diff)
loplugin:fieldcast in XMLPageExport
Change-Id: I07c5f2a6af46a3952d4fbc617d86174b1e23d518 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159222 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--include/xmloff/XMLPageExport.hxx4
-rw-r--r--xmloff/source/style/XMLPageExport.cxx3
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<XMLPropertySetMapper> m_xPageMasterDrawingPagePropSetMapper;
rtl::Reference<SvXMLExportPropertyMapper> 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<XMLPageMasterExportPropMapper*>(m_xPageMasterExportPropMapper.get())
- ->SetGutterAtTop(true);
+ m_xPageMasterExportPropMapper->SetGutterAtTop(true);
}
}