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 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;

View file

@ -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);
}
}