diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-20 11:25:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-21 07:34:55 +0100 |
commit | c6f21f90e1ca448a15b3a8a6d0eeaad108ba8176 (patch) | |
tree | c0ce244dfa57a7f6e63bd8c0277120501718bf73 /xmloff/source/style | |
parent | 7dedccd06d5c822b6bcaeba81753ca9e75fad376 (diff) |
loplugin:subtlezeroinit: xmloff
Change-Id: I1308f4ad4584ac7c657ab9fc2b747c4e3715337d
Diffstat (limited to 'xmloff/source/style')
-rw-r--r-- | xmloff/source/style/PageMasterPropHdlFactory.cxx | 12 | ||||
-rw-r--r-- | xmloff/source/style/prhdlfac.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/styleexp.cxx | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/xmloff/source/style/PageMasterPropHdlFactory.cxx b/xmloff/source/style/PageMasterPropHdlFactory.cxx index e3467d758145..719b420ec0c6 100644 --- a/xmloff/source/style/PageMasterPropHdlFactory.cxx +++ b/xmloff/source/style/PageMasterPropHdlFactory.cxx @@ -71,16 +71,16 @@ const XMLPropertyHandler* XMLPageMasterPropHdlFactory::GetPropertyHandler( sal_I switch( nType ) { case XML_PM_TYPE_PAGESTYLELAYOUT: - pHdl = new XMLPMPropHdl_PageStyleLayout(); + pHdl = new XMLPMPropHdl_PageStyleLayout; break; case XML_PM_TYPE_NUMFORMAT: - pHdl = new XMLPMPropHdl_NumFormat(); + pHdl = new XMLPMPropHdl_NumFormat; break; case XML_PM_TYPE_NUMLETTERSYNC: - pHdl = new XMLPMPropHdl_NumLetterSync(); + pHdl = new XMLPMPropHdl_NumLetterSync; break; case XML_PM_TYPE_PAPERTRAYNUMBER: - pHdl = new XMLPMPropHdl_PaperTrayNumber(); + pHdl = new XMLPMPropHdl_PaperTrayNumber; break; case XML_PM_TYPE_PRINTORIENTATION: pHdl = new XMLNamedBoolPropertyHdl( @@ -119,10 +119,10 @@ const XMLPropertyHandler* XMLPageMasterPropHdlFactory::GetPropertyHandler( sal_I pHdl = new XMLNumberNonePropHdl( XML_CONTINUE, 2 ); break; case XML_PM_TYPE_CENTER_HORIZONTAL: - pHdl = new XMLPMPropHdl_CenterHorizontal(); + pHdl = new XMLPMPropHdl_CenterHorizontal; break; case XML_PM_TYPE_CENTER_VERTICAL: - pHdl = new XMLPMPropHdl_CenterVertical(); + pHdl = new XMLPMPropHdl_CenterVertical; break; case XML_TYPE_TEXT_COLUMNS: pHdl = new XMLTextColumnsPropertyHandler; diff --git a/xmloff/source/style/prhdlfac.cxx b/xmloff/source/style/prhdlfac.cxx index e70168782d88..559ab4c112df 100644 --- a/xmloff/source/style/prhdlfac.cxx +++ b/xmloff/source/style/prhdlfac.cxx @@ -201,7 +201,7 @@ const XMLPropertyHandler* XMLPropertyHandlerFactory::CreatePropertyHandler( sal_ pPropHdl = new XMLPercentPropHdl( 2 ); break; case XML_TYPE_DOUBLE_PERCENT : - pPropHdl = new XMLDoublePercentPropHdl(); + pPropHdl = new XMLDoublePercentPropHdl; break; case XML_TYPE_NEG_PERCENT : pPropHdl = new XMLNegPercentPropHdl( 4 ); @@ -461,7 +461,7 @@ const XMLPropertyHandler* XMLPropertyHandlerFactory::CreatePropertyHandler( sal_ pPropHdl = new XMLNumberWithoutZeroPropHdl( 2 ); break; case XML_TYPE_NUMBER16_AUTO: - pPropHdl = new XMLNumberWithAutoInsteadZeroPropHdl(); + pPropHdl = new XMLNumberWithAutoInsteadZeroPropHdl; break; case XML_TYPE_TEXT_VERTICAL_POS: pPropHdl = new XMLConstantsPropertyHandler( pXML_VertPos_Enum, XML_TOKEN_INVALID ); diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx index 3f7e36e58662..f019e8cb14e7 100644 --- a/xmloff/source/style/styleexp.cxx +++ b/xmloff/source/style/styleexp.cxx @@ -442,7 +442,7 @@ void XMLStyleExport::exportStyleFamily( xPropSet->getPropertySetInfo(); if (xPropSetInfo->hasPropertyByName( sFollowStyle )) - pExportedStyles.reset(new std::set<OUString>()); + pExportedStyles.reset(new std::set<OUString>); bFirstStyle = false; } |