loplugin:referencecasting (clang-cl)

("the source reference is already a subtype of the destination reference")

Change-Id: I1183eaa2015bd9d6567001bb14f7809dffcae7ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100088
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2020-08-04 14:28:50 +02:00
parent a8fbf8e0d1
commit f9f88e2c4f

View File

@ -1592,17 +1592,12 @@ bool SVGFilter::implExportMasterPages( const std::vector< Reference< css::drawin
for( sal_Int32 i = nFirstPage; i <= nLastPage; ++i ) for( sal_Int32 i = nFirstPage; i <= nLastPage; ++i )
{ {
if( rxPages[i].is() ) if( rxPages[i].is() )
{
Reference< css::drawing::XShapes > xShapes( rxPages[i], UNO_QUERY );
if( xShapes.is() )
{ {
// add id attribute // add id attribute
const OUString & sPageId = implGetValidIDFromInterface( rxPages[i] ); const OUString & sPageId = implGetValidIDFromInterface( rxPages[i] );
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "id", sPageId ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "id", sPageId );
bRet = implExportPage( sPageId, rxPages[i], xShapes, true /* is a master page */ ) || bRet; bRet = implExportPage( sPageId, rxPages[i], rxPages[i], true /* is a master page */ ) || bRet;
}
} }
} }
return bRet; return bRet;
@ -1654,7 +1649,7 @@ void SVGFilter::implExportDrawPages( const std::vector< Reference< css::drawing:
} }
else else
{ {
xShapes.set( rxPages[i], UNO_QUERY ); xShapes = rxPages[i];
} }
if( xShapes.is() ) if( xShapes.is() )