loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Ia702fa56c6ed17b26817e1c0d1720cb26199a6da
This commit is contained in:
@@ -48,7 +48,7 @@ uno::Sequence< OUString > SAL_CALL QuickDiagrammingImport_getSupportedServiceNam
|
||||
|
||||
uno::Reference< uno::XInterface > SAL_CALL QuickDiagrammingImport_createInstance( const Reference< XComponentContext >& rxContext ) throw( Exception )
|
||||
{
|
||||
return (cppu::OWeakObject*)new QuickDiagrammingImport( rxContext );
|
||||
return static_cast<cppu::OWeakObject*>(new QuickDiagrammingImport( rxContext ));
|
||||
}
|
||||
|
||||
QuickDiagrammingImport::QuickDiagrammingImport( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext )
|
||||
|
@@ -55,7 +55,7 @@ uno::Sequence< OUString > SAL_CALL QuickDiagrammingLayout_getSupportedServiceNam
|
||||
|
||||
uno::Reference< uno::XInterface > SAL_CALL QuickDiagrammingLayout_createInstance( const Reference< XComponentContext >& rxContext ) throw( Exception )
|
||||
{
|
||||
return (cppu::OWeakObject*)new QuickDiagrammingLayout( rxContext );
|
||||
return static_cast<cppu::OWeakObject*>(new QuickDiagrammingLayout( rxContext ));
|
||||
}
|
||||
|
||||
QuickDiagrammingLayout::QuickDiagrammingLayout( const Reference< XComponentContext >& rxContext )
|
||||
|
@@ -56,7 +56,7 @@ PPTShapeGroupContext::PPTShapeGroupContext(
|
||||
: ShapeGroupContext( rParent, pMasterShapePtr, pGroupShapePtr )
|
||||
, mpSlidePersistPtr( rSlidePersistPtr )
|
||||
, meShapeLocation( eShapeLocation )
|
||||
, pGraphicShape( (PPTShape *)NULL )
|
||||
, pGraphicShape( nullptr )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ void PPTShapeGroupContext::importExtDrawings( )
|
||||
if( pGraphicShape->getFontRefColorForNodes().isUsed() )
|
||||
applyFontRefColor(mpGroupShapePtr, pGraphicShape->getFontRefColorForNodes());
|
||||
}
|
||||
pGraphicShape = oox::drawingml::ShapePtr( (PPTShape *)NULL );
|
||||
pGraphicShape = oox::drawingml::ShapePtr( nullptr );
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -475,7 +475,7 @@ ShapeContextHandler::getShape() throw (uno::RuntimeException, std::exception)
|
||||
pShapePtr->addShape( *mxFilterBase, mpThemePtr.get(), xShapes, aMatrix, pShapePtr->getFillProperties() );
|
||||
xResult = pShapePtr->getXShape();
|
||||
}
|
||||
mpShape.reset((Shape*)0);
|
||||
mpShape.reset();
|
||||
}
|
||||
mxDiagramShapeContext.clear();
|
||||
}
|
||||
|
@@ -32,7 +32,7 @@ void SAL_CALL ShapeDrawingFragmentHandler::endDocument() throw (xml::sax::SAXExc
|
||||
switch( Element )
|
||||
{
|
||||
case DSP_TOKEN( spTree ):
|
||||
return new oox::drawingml::ShapeGroupContext(*this, oox::drawingml::ShapePtr((oox::drawingml::Shape*)0), mpGroupShapePtr);
|
||||
return new oox::drawingml::ShapeGroupContext(*this, oox::drawingml::ShapePtr(nullptr), mpGroupShapePtr);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user