loplugin:subtlezeroinit: oox
Change-Id: I8a1b6baba6191b20264f32cbf73f5d75bc50235b
This commit is contained in:
@@ -242,7 +242,7 @@ bool DocumentDecryption::readAgileEncryptionInfo(Reference< XInputStream >& xInp
|
||||
|
||||
bool DocumentDecryption::readStandard2007EncryptionInfo(BinaryInputStream& rStream)
|
||||
{
|
||||
Standard2007Engine* engine = new Standard2007Engine();
|
||||
Standard2007Engine* engine = new Standard2007Engine;
|
||||
mEngine.reset(engine);
|
||||
msfilter::StandardEncryptionInfo& info = engine->getInfo();
|
||||
|
||||
|
@@ -442,7 +442,7 @@ static OUString convertToOOEquation( CustomShapeProperties& rCustomShapeProperti
|
||||
{
|
||||
if ( !pCommandHashMap )
|
||||
{
|
||||
FormulaCommandHMap* pHM = new FormulaCommandHMap();
|
||||
FormulaCommandHMap* pHM = new FormulaCommandHMap;
|
||||
for(const FormularCommandNameTable& i : pFormularCommandNameTable)
|
||||
(*pHM)[ OUString::createFromAscii( i.pS ) ] = i.pE;
|
||||
pCommandHashMap = pHM;
|
||||
|
@@ -392,12 +392,12 @@ void loadDiagram( ShapePtr& pShape,
|
||||
const OUString& rQStylePath,
|
||||
const OUString& rColorStylePath )
|
||||
{
|
||||
DiagramPtr pDiagram( new Diagram() );
|
||||
DiagramPtr pDiagram( new Diagram );
|
||||
|
||||
DiagramDataPtr pData( new DiagramData() );
|
||||
pDiagram->setData( pData );
|
||||
|
||||
DiagramLayoutPtr pLayout( new DiagramLayout() );
|
||||
DiagramLayoutPtr pLayout( new DiagramLayout );
|
||||
pDiagram->setLayout( pLayout );
|
||||
|
||||
// data
|
||||
@@ -489,12 +489,12 @@ void loadDiagram( const ShapePtr& pShape,
|
||||
const uno::Reference<xml::dom::XDocument>& rXQStyleDom,
|
||||
const uno::Reference<xml::dom::XDocument>& rXColorStyleDom )
|
||||
{
|
||||
DiagramPtr pDiagram( new Diagram() );
|
||||
DiagramPtr pDiagram( new Diagram );
|
||||
|
||||
DiagramDataPtr pData( new DiagramData() );
|
||||
pDiagram->setData( pData );
|
||||
|
||||
DiagramLayoutPtr pLayout( new DiagramLayout() );
|
||||
DiagramLayoutPtr pLayout( new DiagramLayout );
|
||||
pDiagram->setLayout( pLayout );
|
||||
|
||||
// data
|
||||
|
@@ -106,7 +106,7 @@ ContextHandlerRef PPTShapeGroupContext::onCreateContext( sal_Int32 aElementToken
|
||||
{
|
||||
// The shape wants a background, but the slide doesn't have
|
||||
// one: default to white.
|
||||
pBackgroundPropertiesPtr.reset(new oox::drawingml::FillProperties());
|
||||
pBackgroundPropertiesPtr.reset(new oox::drawingml::FillProperties);
|
||||
pBackgroundPropertiesPtr->moFillType = XML_solidFill;
|
||||
pBackgroundPropertiesPtr->maFillColor.setSrgbClr(0xFFFFFF);
|
||||
}
|
||||
|
@@ -169,7 +169,7 @@ SlideFragmentHandler::~SlideFragmentHandler()
|
||||
const FillProperties *pFillProperties = nullptr;
|
||||
if( mpSlidePersistPtr->getTheme() )
|
||||
pFillProperties = mpSlidePersistPtr->getTheme()->getFillStyle( rAttribs.getInteger( XML_idx, -1 ) );
|
||||
FillPropertiesPtr pFillPropertiesPtr( pFillProperties ? new FillProperties( *pFillProperties ) : new FillProperties() );
|
||||
FillPropertiesPtr pFillPropertiesPtr( pFillProperties ? new FillProperties( *pFillProperties ) : new FillProperties );
|
||||
mpSlidePersistPtr->setBackgroundProperties( pFillPropertiesPtr );
|
||||
ContextHandlerRef ret = new ColorContext( *this, mpSlidePersistPtr->getBackgroundColor() );
|
||||
return ret;
|
||||
@@ -179,7 +179,7 @@ SlideFragmentHandler::~SlideFragmentHandler()
|
||||
case A_TOKEN( overrideClrMapping ):
|
||||
case PPT_TOKEN( clrMap ): // CT_ColorMapping
|
||||
{
|
||||
oox::drawingml::ClrMapPtr pClrMapPtr( ( aElementToken == PPT_TOKEN( clrMap ) || !mpSlidePersistPtr.get() || !mpSlidePersistPtr->getClrMap().get() ) ? new oox::drawingml::ClrMap() : new oox::drawingml::ClrMap( *mpSlidePersistPtr->getClrMap() ) );
|
||||
oox::drawingml::ClrMapPtr pClrMapPtr( ( aElementToken == PPT_TOKEN( clrMap ) || !mpSlidePersistPtr.get() || !mpSlidePersistPtr->getClrMap().get() ) ? new oox::drawingml::ClrMap : new oox::drawingml::ClrMap( *mpSlidePersistPtr->getClrMap() ) );
|
||||
ContextHandlerRef ret = new oox::drawingml::clrMapContext( *this, rAttribs, *pClrMapPtr );
|
||||
mpSlidePersistPtr->setClrMap( pClrMapPtr );
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user