loplugin:fieldcast in xmloff

Change-Id: Ic975c6344edb03e8bb8283a627fb70e05ca76239
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159075
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2023-11-07 13:12:29 +02:00
parent b22fe22139
commit 1e990eaa9e
3 changed files with 5 additions and 5 deletions

View file

@ -20,10 +20,11 @@
#include <xmloff/xmlprcon.hxx>
class SvxXMLListStyleContext;
class XMLShapePropertySetContext : public SvXMLPropertySetContext
{
SvXMLImportContextRef mxBulletStyle;
rtl::Reference<SvxXMLListStyleContext> mxBulletStyle;
sal_Int32 mnBulletIndex;
public:

View file

@ -54,10 +54,9 @@ void XMLShapePropertySetContext::endFastElement(sal_Int32 )
Reference< container::XIndexReplace > xNumRule;
if( mxBulletStyle.is() )
{
SvxXMLListStyleContext* pBulletStyle = static_cast<SvxXMLListStyleContext*>(mxBulletStyle.get());
xNumRule = SvxXMLListStyleContext::CreateNumRule( GetImport().GetModel() );
if( xNumRule.is() )
pBulletStyle->FillUnoNumRule(xNumRule);
mxBulletStyle->FillUnoNumRule(xNumRule);
}
XMLPropertyState aPropState( mnBulletIndex, Any(xNumRule) );

View file

@ -220,7 +220,7 @@ public:
// Core impl. of the unification of drawing objects and Writer fly frames (#i26791#)
class XMLDrawHint_Impl : public XMLHint_Impl
{
SvXMLImportContextRef xContext;
rtl::Reference<SvXMLShapeContext> xContext;
public:
@ -234,7 +234,7 @@ public:
// Frame "to character": anchor moves from first to last char after saving (#i33242#)
css::uno::Reference < css::drawing::XShape > const & GetShape() const
{
return static_cast<SvXMLShapeContext*>(xContext.get())->getShape();
return xContext->getShape();
}
};