summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-20 11:25:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-21 07:34:55 +0100
commitc6f21f90e1ca448a15b3a8a6d0eeaad108ba8176 (patch)
treec0ce244dfa57a7f6e63bd8c0277120501718bf73 /xmloff
parent7dedccd06d5c822b6bcaeba81753ca9e75fad376 (diff)
loplugin:subtlezeroinit: xmloff
Change-Id: I1308f4ad4584ac7c657ab9fc2b747c4e3715337d
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/PropertyMaps.cxx2
-rw-r--r--xmloff/source/core/xmlcnimp.cxx2
-rw-r--r--xmloff/source/draw/sdpropls.cxx8
-rw-r--r--xmloff/source/draw/sdxmlexp.cxx8
-rw-r--r--xmloff/source/draw/shapeimport.cxx2
-rw-r--r--xmloff/source/meta/xmlversion.cxx2
-rw-r--r--xmloff/source/script/XMLEventImportHelper.cxx4
-rw-r--r--xmloff/source/style/PageMasterPropHdlFactory.cxx12
-rw-r--r--xmloff/source/style/prhdlfac.cxx4
-rw-r--r--xmloff/source/style/styleexp.cxx2
-rw-r--r--xmloff/source/table/XMLTableExport.cxx2
-rw-r--r--xmloff/source/text/XMLPropertyBackpatcher.cxx2
-rw-r--r--xmloff/source/text/txtimp.cxx2
13 files changed, 26 insertions, 26 deletions
diff --git a/xmloff/source/chart/PropertyMaps.cxx b/xmloff/source/chart/PropertyMaps.cxx
index 0da6258d1125..9bb864bc986e 100644
--- a/xmloff/source/chart/PropertyMaps.cxx
+++ b/xmloff/source/chart/PropertyMaps.cxx
@@ -148,7 +148,7 @@ const XMLPropertyHandler* XMLChartPropHdlFactory::GetPropertyHandler( sal_Int32
cppu::UnoType<chart::ChartDataRowSource>::get());
break;
case XML_SCH_TYPE_TEXT_ORIENTATION:
- pHdl = new XMLTextOrientationHdl();
+ pHdl = new XMLTextOrientationHdl;
break;
case XML_SCH_TYPE_INTERPOLATION:
diff --git a/xmloff/source/core/xmlcnimp.cxx b/xmloff/source/core/xmlcnimp.cxx
index c8b40f80dded..04343f6baf51 100644
--- a/xmloff/source/core/xmlcnimp.cxx
+++ b/xmloff/source/core/xmlcnimp.cxx
@@ -21,7 +21,7 @@
#include <xmloff/xmlcnimp.hxx>
#include <rtl/ustring.hxx>
-SvXMLAttrContainerData::SvXMLAttrContainerData() : pimpl( new SvXMLAttrCollection() )
+SvXMLAttrContainerData::SvXMLAttrContainerData() : pimpl( new SvXMLAttrCollection )
{
}
diff --git a/xmloff/source/draw/sdpropls.cxx b/xmloff/source/draw/sdpropls.cxx
index ebd625ada4cd..1e9428efaf25 100644
--- a/xmloff/source/draw/sdpropls.cxx
+++ b/xmloff/source/draw/sdpropls.cxx
@@ -916,7 +916,7 @@ const XMLPropertyHandler* XMLSdPropHdlFactory::GetPropertyHandler( sal_Int32 nTy
}
case XML_SD_TYPE_PRESPAGE_DURATION :
{
- pHdl = new XMLDurationPropertyHdl();
+ pHdl = new XMLDurationPropertyHdl;
break;
}
case XML_SD_TYPE_TEXT_CROSSEDOUT :
@@ -1109,10 +1109,10 @@ const XMLPropertyHandler* XMLSdPropHdlFactory::GetPropertyHandler( sal_Int32 nTy
break;
}
case XML_SD_TYPE_CAPTION_IS_ESC_REL:
- pHdl = new XMLIsPercentagePropertyHandler();
+ pHdl = new XMLIsPercentagePropertyHandler;
break;
case XML_SD_TYPE_CAPTION_ESC_REL:
- pHdl = new XMLCaptionEscapeRelative();
+ pHdl = new XMLCaptionEscapeRelative;
break;
case XML_SD_TYPE_CAPTION_ESC_ABS:
pHdl = new XMLPercentOrMeasurePropertyHandler;
@@ -1147,7 +1147,7 @@ const XMLPropertyHandler* XMLSdPropHdlFactory::GetPropertyHandler( sal_Int32 nTy
pHdl = new XMLMoveSizeProtectHdl( nType );
break;
case XML_SD_TYPE_HEADER_FOOTER_VISIBILITY_TYPE:
- pHdl = new XMLSdHeaderFooterVisibilityTypeHdl();
+ pHdl = new XMLSdHeaderFooterVisibilityTypeHdl;
break;
}
diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx
index 5fb48ca00edf..476a3d8edbb5 100644
--- a/xmloff/source/draw/sdxmlexp.cxx
+++ b/xmloff/source/draw/sdxmlexp.cxx
@@ -393,11 +393,11 @@ SdXMLExport::SdXMLExport(
mnDocMasterPageCount(0L),
mnDocDrawPageCount(0L),
mnObjectCount(0L),
- mpPageMasterInfoList(new ImpXMLEXPPageMasterList()),
- mpPageMasterUsageList(new ImpXMLEXPPageMasterList()),
- mpNotesPageMasterUsageList(new ImpXMLEXPPageMasterList()),
+ mpPageMasterInfoList(new ImpXMLEXPPageMasterList),
+ mpPageMasterUsageList(new ImpXMLEXPPageMasterList),
+ mpNotesPageMasterUsageList(new ImpXMLEXPPageMasterList),
mpHandoutPageMaster(nullptr),
- mpAutoLayoutInfoList(new ImpXMLAutoLayoutInfoList()),
+ mpAutoLayoutInfoList(new ImpXMLAutoLayoutInfoList),
mbIsDraw(bIsDraw),
msPageLayoutNames( "PageLayoutNames" )
{
diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx
index 201639313ee7..ba1d0f6ad9b9 100644
--- a/xmloff/source/draw/shapeimport.cxx
+++ b/xmloff/source/draw/shapeimport.cxx
@@ -102,7 +102,7 @@ XMLShapeImportHelper::XMLShapeImportHelper(
SvXMLImport& rImporter,
const uno::Reference< frame::XModel>& rModel,
SvXMLImportPropertyMapper *pExtMapper )
-: mpImpl( new XMLShapeImportHelperImpl() ),
+: mpImpl( new XMLShapeImportHelperImpl ),
mpPropertySetMapper(nullptr),
mpPresPagePropsMapper(nullptr),
diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx
index af4bbab12679..e9abec403767 100644
--- a/xmloff/source/meta/xmlversion.cxx
+++ b/xmloff/source/meta/xmlversion.cxx
@@ -448,7 +448,7 @@ XMLVersionListPersistence_get_implementation(
css::uno::XComponentContext *,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new XMLVersionListPersistence());
+ return cppu::acquire(new XMLVersionListPersistence);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/source/script/XMLEventImportHelper.cxx b/xmloff/source/script/XMLEventImportHelper.cxx
index 66d02be6be29..b5e4b77bac5f 100644
--- a/xmloff/source/script/XMLEventImportHelper.cxx
+++ b/xmloff/source/script/XMLEventImportHelper.cxx
@@ -31,7 +31,7 @@ using ::com::sun::star::uno::Sequence;
XMLEventImportHelper::XMLEventImportHelper() :
aFactoryMap(),
- pEventNameMap(new NameMap()),
+ pEventNameMap(new NameMap),
aEventNameMapList()
{
}
@@ -92,7 +92,7 @@ void XMLEventImportHelper::PushTranslationTable()
{
// save old map and install new one
aEventNameMapList.push_back(pEventNameMap);
- pEventNameMap = new NameMap();
+ pEventNameMap = new NameMap;
}
void XMLEventImportHelper::PopTranslationTable()
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;
}
diff --git a/xmloff/source/table/XMLTableExport.cxx b/xmloff/source/table/XMLTableExport.cxx
index 4a4785788837..668e2b477931 100644
--- a/xmloff/source/table/XMLTableExport.cxx
+++ b/xmloff/source/table/XMLTableExport.cxx
@@ -211,7 +211,7 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates )
if( !mbExportTables )
return;
- std::shared_ptr< XMLTableInfo > xTableInfo( new XMLTableInfo() );
+ std::shared_ptr< XMLTableInfo > xTableInfo( new XMLTableInfo );
maTableInfoMap[xColumnRowRange] = xTableInfo;
try
diff --git a/xmloff/source/text/XMLPropertyBackpatcher.cxx b/xmloff/source/text/XMLPropertyBackpatcher.cxx
index 6c429878e7ae..7da4b8da0f41 100644
--- a/xmloff/source/text/XMLPropertyBackpatcher.cxx
+++ b/xmloff/source/text/XMLPropertyBackpatcher.cxx
@@ -104,7 +104,7 @@ void XMLPropertyBackpatcher<A>::SetProperty(
if (! aBackpatchListMap.count(sName))
{
// create backpatch list for this name
- BackpatchListType* pTmp = new BackpatchListType() ;
+ BackpatchListType* pTmp = new BackpatchListType;
aBackpatchListMap[sName] = static_cast<void*>(pTmp);
}
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index c5f411d72494..04f579e410ae 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -2501,7 +2501,7 @@ SvI18NMap& XMLTextImportHelper::GetRenameMap()
{
if (!m_xImpl->m_xRenameMap.get())
{
- m_xImpl->m_xRenameMap.reset( new SvI18NMap() );
+ m_xImpl->m_xRenameMap.reset( new SvI18NMap );
}
return *m_xImpl->m_xRenameMap;
}