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>
This commit is contained in:
Noel Grandin
2023-11-08 13:38:47 +02:00
parent 86441791e2
commit d294d1a32d
2 changed files with 3 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ class SvXMLExport;
class XMLPropertyHandlerFactory; class XMLPropertyHandlerFactory;
class XMLPropertySetMapper; class XMLPropertySetMapper;
class SvXMLExportPropertyMapper; class SvXMLExportPropertyMapper;
class XMLPageMasterExportPropMapper;
struct XMLPageExportNameEntry struct XMLPageExportNameEntry
{ {
@@ -58,7 +58,7 @@ class XMLOFF_DLLPUBLIC XMLPageExport : public salhelper::SimpleReferenceObject
rtl::Reference < XMLPropertyHandlerFactory > m_xPageMasterPropHdlFactory; rtl::Reference < XMLPropertyHandlerFactory > m_xPageMasterPropHdlFactory;
rtl::Reference < XMLPropertySetMapper > m_xPageMasterPropSetMapper; rtl::Reference < XMLPropertySetMapper > m_xPageMasterPropSetMapper;
rtl::Reference < SvXMLExportPropertyMapper > m_xPageMasterExportPropMapper; rtl::Reference < XMLPageMasterExportPropMapper > m_xPageMasterExportPropMapper;
rtl::Reference<XMLPropertySetMapper> m_xPageMasterDrawingPagePropSetMapper; rtl::Reference<XMLPropertySetMapper> m_xPageMasterDrawingPagePropSetMapper;
rtl::Reference<SvXMLExportPropertyMapper> m_xPageMasterDrawingPageExportPropMapper; rtl::Reference<SvXMLExportPropertyMapper> m_xPageMasterDrawingPageExportPropMapper;

View File

@@ -242,8 +242,7 @@ XMLPageExport::XMLPageExport(SvXMLExport & rExp)
xProps->getPropertyValue("GutterAtTop") >>= bGutterAtTop; xProps->getPropertyValue("GutterAtTop") >>= bGutterAtTop;
if (bGutterAtTop) if (bGutterAtTop)
{ {
static_cast<XMLPageMasterExportPropMapper*>(m_xPageMasterExportPropMapper.get()) m_xPageMasterExportPropMapper->SetGutterAtTop(true);
->SetGutterAtTop(true);
} }
} }