[Libreoffice-commits] core.git: 41 commits - accessibility/source basctl/source basic/source chart2/source comphelper/qa comphelper/source connectivity/source cppuhelper/source cppu/source cpputools/source cui/source desktop/source editeng/source filter/source framework/source i18npool/source idlc/source include/comphelper l10ntools/source oox/source pyuno/source reportdesign/source sal/qa sax/qa scripting/source sc/source sdext/source sd/source sfx2/source shell/source slideshow/source sot/source starmath/inc starmath/source svtools/source svx/source sw/source toolkit/source ucb/source unoxml/qa unoxml/source vcl/headless vcl/opengl vcl/source vcl/unx vcl/workben xmlhelp/source xmloff/source xmlsecurity/source

Stephan Bergmann sbergman at redhat.com
Tue Feb 21 06:35:41 UTC 2017


 accessibility/source/extended/AccessibleBrowseBox.cxx             |    2 
 accessibility/source/extended/AccessibleGridControl.cxx           |    2 
 accessibility/source/extended/accessibletabbarbase.cxx            |    2 
 accessibility/source/standard/accessiblemenubasecomponent.cxx     |    2 
 accessibility/source/standard/vclxaccessiblestatusbaritem.cxx     |    2 
 accessibility/source/standard/vclxaccessibletabpage.cxx           |    2 
 accessibility/source/standard/vclxaccessibletoolboxitem.cxx       |    2 
 basctl/source/accessibility/accessibledialogcontrolshape.cxx      |    2 
 basctl/source/accessibility/accessibledialogwindow.cxx            |    2 
 basic/source/comp/exprtree.cxx                                    |    4 
 chart2/source/controller/dialogs/tp_DataSourceControls.cxx        |    2 
 chart2/source/tools/WrappedPropertySet.cxx                        |    2 
 chart2/source/view/charttypes/GL3DBarChart.cxx                    |    2 
 chart2/source/view/charttypes/PieChart.cxx                        |    2 
 chart2/source/view/main/OpenglShapeFactory.cxx                    |    2 
 comphelper/qa/container/testifcontainer.cxx                       |   24 -
 comphelper/source/misc/anycompare.cxx                             |   34 +-
 comphelper/source/misc/storagehelper.cxx                          |    2 
 connectivity/source/commontools/RowFunctionParser.cxx             |    2 
 connectivity/source/drivers/file/fcomp.cxx                        |  132 +++++-----
 connectivity/source/drivers/postgresql/pq_connection.cxx          |    2 
 cppu/source/threadpool/threadpool.cxx                             |    2 
 cppu/source/typelib/typelib.cxx                                   |    2 
 cppuhelper/source/interfacecontainer.cxx                          |    4 
 cpputools/source/unoexe/unoexe.cxx                                |    2 
 cui/source/customize/cfg.cxx                                      |    4 
 cui/source/tabpages/tpline.cxx                                    |    4 
 desktop/source/lib/init.cxx                                       |    2 
 editeng/source/misc/txtrange.cxx                                  |    2 
 editeng/source/rtf/svxrtf.cxx                                     |    2 
 editeng/source/uno/unonrule.cxx                                   |    2 
 editeng/source/uno/unotext.cxx                                    |    2 
 filter/source/msfilter/util.cxx                                   |    4 
 framework/source/fwi/classes/protocolhandlercache.cxx             |    4 
 i18npool/source/characterclassification/unoscripttypedetector.cxx |    2 
 idlc/source/astexpression.cxx                                     |   16 -
 idlc/source/idlcproduce.cxx                                       |    2 
 idlc/source/parser.y                                              |    8 
 include/comphelper/IdPropArrayHelper.hxx                          |    2 
 l10ntools/source/lngmerge.cxx                                     |    2 
 l10ntools/source/xmlparse.cxx                                     |   20 -
 oox/source/crypto/DocumentDecryption.cxx                          |    2 
 oox/source/drawingml/customshapegeometry.cxx                      |    2 
 oox/source/drawingml/diagram/diagram.cxx                          |    8 
 oox/source/ppt/pptshapegroupcontext.cxx                           |    2 
 oox/source/ppt/slidefragmenthandler.cxx                           |    4 
 pyuno/source/module/pyuno.cxx                                     |    2 
 pyuno/source/module/pyuno_iterator.cxx                            |    4 
 pyuno/source/module/pyuno_runtime.cxx                             |    2 
 pyuno/source/module/pyuno_struct.cxx                              |    2 
 reportdesign/source/core/sdr/RptObject.cxx                        |   12 
 reportdesign/source/ui/inspection/DataProviderHandler.cxx         |    2 
 reportdesign/source/ui/report/ReportController.cxx                |    2 
 sal/qa/osl/process/osl_Thread.cxx                                 |   10 
 sax/qa/cppunit/xmlimport.cxx                                      |    2 
 sc/source/core/data/funcdesc.cxx                                  |    4 
 sc/source/core/tool/adiasync.cxx                                  |    2 
 sc/source/core/tool/calcconfig.cxx                                |    2 
 sc/source/filter/excel/impop.cxx                                  |    2 
 sc/source/filter/excel/xestyle.cxx                                |    2 
 sc/source/filter/html/htmlexp.cxx                                 |    2 
 sc/source/filter/xml/xmlcelli.cxx                                 |    2 
 sc/source/filter/xml/xmlexprt.cxx                                 |    2 
 sc/source/filter/xml/xmlimprt.cxx                                 |    2 
 sc/source/filter/xml/xmlimprt.hxx                                 |    6 
 sc/source/ui/unoobj/chart2uno.cxx                                 |    4 
 scripting/source/dlgprov/dlgprov.cxx                              |    2 
 scripting/source/provider/BrowseNodeFactoryImpl.cxx               |    2 
 sd/source/core/stlfamily.cxx                                      |    2 
 sd/source/ui/animations/SlideTransitionPane.cxx                   |    4 
 sd/source/ui/dlg/TemplateScanner.cxx                              |    2 
 sd/source/ui/framework/factories/BasicViewFactory.cxx             |    2 
 sd/source/ui/presenter/PresenterPreviewCache.cxx                  |    2 
 sd/source/ui/sidebar/LayoutMenu.cxx                               |    2 
 sd/source/ui/sidebar/MasterPageDescriptor.cxx                     |    2 
 sd/source/ui/sidebar/MasterPageObserver.cxx                       |    2 
 sd/source/ui/sidebar/MasterPagesSelector.cxx                      |    4 
 sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx                 |    2 
 sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx            |    2 
 sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx              |    8 
 sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx                |    2 
 sd/source/ui/slidesorter/controller/SlsPageSelector.cxx           |    2 
 sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx             |    2 
 sd/source/ui/tools/IconCache.cxx                                  |    2 
 sd/source/ui/tools/PropertySet.cxx                                |    2 
 sd/source/ui/tools/SdGlobalResourceContainer.cxx                  |    2 
 sdext/source/presenter/PresenterHelpView.cxx                      |    4 
 sdext/source/presenter/PresenterPaneContainer.cxx                 |    2 
 sdext/source/presenter/PresenterToolBar.cxx                       |    4 
 sfx2/source/appl/appinit.cxx                                      |    2 
 sfx2/source/appl/shutdownicon.cxx                                 |    2 
 shell/source/tools/lngconvex/lngconvex.cxx                        |    2 
 slideshow/source/engine/smilfunctionparser.cxx                    |    2 
 sot/source/base/exchange.cxx                                      |    2 
 starmath/inc/cursor.hxx                                           |    2 
 starmath/source/cursor.cxx                                        |   16 -
 svtools/source/brwbox/editbrowsebox.cxx                           |    2 
 svtools/source/contnr/imivctl1.cxx                                |    6 
 svtools/source/control/ctrlbox.cxx                                |    2 
 svtools/source/control/vclxaccessibleheaderbaritem.cxx            |    2 
 svtools/source/uno/treecontrolpeer.cxx                            |    2 
 svx/source/accessibility/charmapacc.cxx                           |    6 
 svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx     |    2 
 svx/source/engine3d/float3d.cxx                                   |    2 
 svx/source/svdraw/svdomedia.cxx                                   |    4 
 svx/source/table/tabledesign.cxx                                  |    2 
 sw/source/core/doc/DocumentFieldsManager.cxx                      |    2 
 sw/source/core/doc/DocumentListItemsManager.cxx                   |    2 
 sw/source/core/doc/SwStyleNameMapper.cxx                          |    4 
 sw/source/core/doc/docedt.cxx                                     |    2 
 sw/source/core/doc/docnew.cxx                                     |    8 
 sw/source/core/layout/objectformatter.cxx                         |    2 
 sw/source/core/table/swnewtable.cxx                               |    2 
 sw/source/core/text/itradj.cxx                                    |    2 
 sw/source/core/unocore/unostyle.cxx                               |    4 
 sw/source/filter/basflt/fltini.cxx                                |    2 
 sw/source/filter/rtf/swparrtf.cxx                                 |    2 
 sw/source/filter/writer/writer.cxx                                |    2 
 sw/source/filter/ww8/docxattributeoutput.cxx                      |   12 
 sw/source/filter/ww8/wrtww8.cxx                                   |    4 
 sw/source/filter/ww8/ww8par.cxx                                   |    4 
 sw/source/filter/xml/xmltble.cxx                                  |    2 
 sw/source/filter/xml/xmltbli.cxx                                  |    2 
 sw/source/uibase/docvw/frmsidebarwincontainer.cxx                 |    2 
 toolkit/source/awt/vclxaccessiblecomponent.cxx                    |    2 
 toolkit/source/awt/vclxprinter.cxx                                |    2 
 toolkit/source/controls/dialogcontrol.cxx                         |   12 
 ucb/source/core/FileAccess.cxx                                    |    8 
 ucb/source/core/ucbstore.cxx                                      |    2 
 ucb/source/ucp/file/bc.cxx                                        |    2 
 ucb/source/ucp/file/filtask.cxx                                   |    2 
 ucb/source/ucp/webdav-neon/webdavprovider.cxx                     |    2 
 unoxml/qa/unit/domtest.cxx                                        |    4 
 unoxml/source/dom/document.cxx                                    |    2 
 unoxml/source/dom/documentbuilder.cxx                             |    2 
 vcl/headless/svpprn.cxx                                           |    2 
 vcl/opengl/salbmp.cxx                                             |    2 
 vcl/source/app/svdata.cxx                                         |    4 
 vcl/source/app/svmain.cxx                                         |    2 
 vcl/source/gdi/oldprintadaptor.cxx                                |    2 
 vcl/source/gdi/print.cxx                                          |    2 
 vcl/source/gdi/regband.cxx                                        |    3 
 vcl/source/helper/lazydelete.cxx                                  |    2 
 vcl/source/outdev/font.cxx                                        |    2 
 vcl/source/outdev/outdev.cxx                                      |    2 
 vcl/source/window/menu.cxx                                        |    2 
 vcl/source/window/toolbox.cxx                                     |    2 
 vcl/source/window/toolbox2.cxx                                    |    2 
 vcl/unx/generic/app/saldisp.cxx                                   |    2 
 vcl/unx/generic/printer/ppdparser.cxx                             |    2 
 vcl/unx/gtk/a11y/atkutil.cxx                                      |    2 
 vcl/unx/kde4/KDESalFrame.cxx                                      |    2 
 vcl/workben/vcldemo.cxx                                           |   26 -
 xmlhelp/source/cxxhelp/provider/db.cxx                            |    4 
 xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx             |    2 
 xmloff/source/chart/PropertyMaps.cxx                              |    2 
 xmloff/source/core/xmlcnimp.cxx                                   |    2 
 xmloff/source/draw/sdpropls.cxx                                   |    8 
 xmloff/source/draw/sdxmlexp.cxx                                   |    8 
 xmloff/source/draw/shapeimport.cxx                                |    2 
 xmloff/source/meta/xmlversion.cxx                                 |    2 
 xmloff/source/script/XMLEventImportHelper.cxx                     |    4 
 xmloff/source/style/PageMasterPropHdlFactory.cxx                  |   12 
 xmloff/source/style/prhdlfac.cxx                                  |    4 
 xmloff/source/style/styleexp.cxx                                  |    2 
 xmloff/source/table/XMLTableExport.cxx                            |    2 
 xmloff/source/text/XMLPropertyBackpatcher.cxx                     |    2 
 xmloff/source/text/txtimp.cxx                                     |    2 
 xmlsecurity/source/pdfio/pdfdocument.cxx                          |   10 
 xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx         |    8 
 170 files changed, 380 insertions(+), 379 deletions(-)

New commits:
commit 4c8154bfd97fe650d2222dc095b18150a10dc626
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 20:02:59 2017 +0100

    loplugin:subtlezeroinit: accessibility
    
    Change-Id: I4a6a031531440f4581cbe123bc11aec02756c3e4

diff --git a/accessibility/source/extended/AccessibleBrowseBox.cxx b/accessibility/source/extended/AccessibleBrowseBox.cxx
index bfef475..dc53421 100644
--- a/accessibility/source/extended/AccessibleBrowseBox.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBox.cxx
@@ -58,7 +58,7 @@ AccessibleBrowseBox::AccessibleBrowseBox(
             ::svt::IAccessibleTableProvider& _rBrowseBox )
     : AccessibleBrowseBoxBase( _rxParent, _rBrowseBox,nullptr, BBTYPE_BROWSEBOX )
 {
-    m_xImpl.reset( new AccessibleBrowseBoxImpl() );
+    m_xImpl.reset( new AccessibleBrowseBoxImpl );
     m_xImpl->m_aCreator = _rxCreator;
 
     m_xFocusWindow = VCLUnoHelper::GetInterface(mpBrowseBox->GetWindowInstance());
diff --git a/accessibility/source/extended/AccessibleGridControl.cxx b/accessibility/source/extended/AccessibleGridControl.cxx
index 153fb94..df348e9 100644
--- a/accessibility/source/extended/AccessibleGridControl.cxx
+++ b/accessibility/source/extended/AccessibleGridControl.cxx
@@ -65,7 +65,7 @@ AccessibleGridControl::AccessibleGridControl(
             ::svt::table::IAccessibleTable& _rTable )
     : AccessibleGridControlBase( _rxParent, _rTable, TCTYPE_GRIDCONTROL )
 {
-    m_xImpl.reset( new AccessibleGridControl_Impl() );
+    m_xImpl.reset( new AccessibleGridControl_Impl );
     m_xImpl->m_aCreator = _rxCreator;
 }
 
diff --git a/accessibility/source/extended/accessibletabbarbase.cxx b/accessibility/source/extended/accessibletabbarbase.cxx
index 2e3a0a9..ba7e129 100644
--- a/accessibility/source/extended/accessibletabbarbase.cxx
+++ b/accessibility/source/extended/accessibletabbarbase.cxx
@@ -30,7 +30,7 @@ namespace accessibility
 
 
 AccessibleTabBarBase::AccessibleTabBarBase( TabBar* pTabBar ) :
-    OAccessibleExtendedComponentHelper( new VCLExternalSolarLock() ),
+    OAccessibleExtendedComponentHelper( new VCLExternalSolarLock ),
     m_pTabBar( nullptr )
 {
     m_pExternalLock = static_cast< VCLExternalSolarLock* >( getExternalLock() );
diff --git a/accessibility/source/standard/accessiblemenubasecomponent.cxx b/accessibility/source/standard/accessiblemenubasecomponent.cxx
index f25da0c..baa097e 100644
--- a/accessibility/source/standard/accessiblemenubasecomponent.cxx
+++ b/accessibility/source/standard/accessiblemenubasecomponent.cxx
@@ -44,7 +44,7 @@ using namespace ::comphelper;
 
 
 OAccessibleMenuBaseComponent::OAccessibleMenuBaseComponent( Menu* pMenu )
-    :OAccessibleExtendedComponentHelper( new VCLExternalSolarLock() )
+    :OAccessibleExtendedComponentHelper( new VCLExternalSolarLock )
     ,m_pMenu( pMenu )
     ,m_bEnabled( false )
     ,m_bFocused( false )
diff --git a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
index bd02e3d..e937415 100644
--- a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
+++ b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
@@ -49,7 +49,7 @@ using namespace ::comphelper;
 
 
 VCLXAccessibleStatusBarItem::VCLXAccessibleStatusBarItem( StatusBar* pStatusBar, sal_uInt16 nItemId )
-    :AccessibleTextHelper_BASE( new VCLExternalSolarLock() )
+    :AccessibleTextHelper_BASE( new VCLExternalSolarLock )
     ,m_pStatusBar( pStatusBar )
     ,m_nItemId( nItemId )
 {
diff --git a/accessibility/source/standard/vclxaccessibletabpage.cxx b/accessibility/source/standard/vclxaccessibletabpage.cxx
index 6a8868b..4ccebc7 100644
--- a/accessibility/source/standard/vclxaccessibletabpage.cxx
+++ b/accessibility/source/standard/vclxaccessibletabpage.cxx
@@ -49,7 +49,7 @@ using namespace ::comphelper;
 
 
 VCLXAccessibleTabPage::VCLXAccessibleTabPage( TabControl* pTabControl, sal_uInt16 nPageId )
-    :AccessibleTextHelper_BASE( new VCLExternalSolarLock() )
+    :AccessibleTextHelper_BASE( new VCLExternalSolarLock )
     ,m_pTabControl( pTabControl )
     ,m_nPageId( nPageId )
 {
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
index 4d2d06b..c2af5e1 100644
--- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
+++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
@@ -60,7 +60,7 @@ using namespace ::comphelper;
 
 VCLXAccessibleToolBoxItem::VCLXAccessibleToolBoxItem( ToolBox* _pToolBox, sal_Int32 _nPos ) :
 
-    AccessibleTextHelper_BASE( new VCLExternalSolarLock() ),
+    AccessibleTextHelper_BASE( new VCLExternalSolarLock ),
 
     m_pToolBox      ( _pToolBox ),
     m_nIndexInParent( _nPos ),
commit 1359907251321604a7159b5d0b9ce4f3879f52ea
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 20:02:33 2017 +0100

    loplugin:subtlezeroinit: basctl
    
    Change-Id: Iab918891dabae8053adced8e527a512a63c00148

diff --git a/basctl/source/accessibility/accessibledialogcontrolshape.cxx b/basctl/source/accessibility/accessibledialogcontrolshape.cxx
index 892911e..cf41060 100644
--- a/basctl/source/accessibility/accessibledialogcontrolshape.cxx
+++ b/basctl/source/accessibility/accessibledialogcontrolshape.cxx
@@ -51,7 +51,7 @@ using namespace ::comphelper;
 
 
 AccessibleDialogControlShape::AccessibleDialogControlShape (DialogWindow* pDialogWindow, DlgEdObj* pDlgEdObj)
-    :OAccessibleExtendedComponentHelper( new VCLExternalSolarLock() )
+    :OAccessibleExtendedComponentHelper( new VCLExternalSolarLock )
     ,m_pDialogWindow( pDialogWindow )
     ,m_pDlgEdObj( pDlgEdObj )
 {
diff --git a/basctl/source/accessibility/accessibledialogwindow.cxx b/basctl/source/accessibility/accessibledialogwindow.cxx
index a9d4c92..3941ffa 100644
--- a/basctl/source/accessibility/accessibledialogwindow.cxx
+++ b/basctl/source/accessibility/accessibledialogwindow.cxx
@@ -100,7 +100,7 @@ bool AccessibleDialogWindow::ChildDescriptor::operator<( const ChildDescriptor&
 
 
 AccessibleDialogWindow::AccessibleDialogWindow (basctl::DialogWindow* pDialogWindow)
-    : OAccessibleExtendedComponentHelper( new VCLExternalSolarLock() )
+    : OAccessibleExtendedComponentHelper( new VCLExternalSolarLock )
     , m_pDialogWindow(pDialogWindow)
     , m_pDlgEditor(nullptr)
     , m_pDlgEdModel(nullptr)
commit 73be3ce38acf573728cb4ebbe0c420ad6f73039e
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 20:02:19 2017 +0100

    loplugin:subtlezeroinit: basic
    
    Change-Id: I3d5f157db315fce3492ff6ce88e8ded763af944e

diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx
index 008976f..5249ead 100644
--- a/basic/source/comp/exprtree.cxx
+++ b/basic/source/comp/exprtree.cxx
@@ -231,7 +231,7 @@ SbiExprNode* SbiExpression::Term( const KeywordSymbolInfo* pKeywordSymbolInfo )
         {
             if( pvMoreParLcl == nullptr )
             {
-                pvMoreParLcl = new SbiExprListVector();
+                pvMoreParLcl = new SbiExprListVector;
             }
             SbiExprListPtr pAddPar = SbiExprList::ParseParameters( pParser );
             bError = bError || !pAddPar->IsValid();
@@ -428,7 +428,7 @@ SbiExprNode* SbiExpression::ObjTerm( SbiSymDef& rObj )
         {
             if( pvMoreParLcl == nullptr )
             {
-                pvMoreParLcl = new SbiExprListVector();
+                pvMoreParLcl = new SbiExprListVector;
             }
             SbiExprListPtr pAddPar = SbiExprList::ParseParameters( pParser );
             bError = bError || !pPar->IsValid();
commit b8e85c6a647942760aceba204367154f2fc44b5c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 20:02:05 2017 +0100

    loplugin:subtlezeroinit: chart2
    
    Change-Id: I9012f97b188195140504dacb262c212d46df675a

diff --git a/chart2/source/controller/dialogs/tp_DataSourceControls.cxx b/chart2/source/controller/dialogs/tp_DataSourceControls.cxx
index 0a31bcb..f3de924 100644
--- a/chart2/source/controller/dialogs/tp_DataSourceControls.cxx
+++ b/chart2/source/controller/dialogs/tp_DataSourceControls.cxx
@@ -37,7 +37,7 @@ VCL_BUILDER_FACTORY_CONSTRUCTOR(SeriesListBox, 0)
 
 SvTreeListEntry* SeriesListBox::CreateEntry() const
 {
-    return new SeriesEntry();
+    return new SeriesEntry;
 }
 
 } //  namespace chart
diff --git a/chart2/source/tools/WrappedPropertySet.cxx b/chart2/source/tools/WrappedPropertySet.cxx
index a88cd56..f2881c3 100644
--- a/chart2/source/tools/WrappedPropertySet.cxx
+++ b/chart2/source/tools/WrappedPropertySet.cxx
@@ -426,7 +426,7 @@ tWrappedPropertyMap& WrappedPropertySet::getWrappedPropertyMap()
         if(!p)
         {
             std::vector< WrappedProperty* > aPropList( createWrappedProperties() );
-            p = new tWrappedPropertyMap();
+            p = new tWrappedPropertyMap;
 
             for( std::vector< WrappedProperty* >::const_iterator aIt = aPropList.begin(); aIt!=aPropList.end(); ++aIt )
             {
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index e0c9567..33e6b1f 100644
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -504,7 +504,7 @@ GL3DBarChart::GL3DBarChart(
     mpWindow(pWindow),
     mpCamera(nullptr),
     mbValidContext(true),
-    mpTextCache(new opengl3D::TextCache()),
+    mpTextCache(new opengl3D::TextCache),
     mnMaxX(0),
     mnMaxY(0),
     mnDistance(0.0),
diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx
index 3549cea..a806923 100644
--- a/chart2/source/view/charttypes/PieChart.cxx
+++ b/chart2/source/view/charttypes/PieChart.cxx
@@ -648,7 +648,7 @@ void PieChart::createShapes()
                 std::unique_ptr< tPropertyNameValueMap > apOverwritePropertiesMap(nullptr);
                 if (!pSeries->hasPointOwnColor(nPointIndex) && m_xColorScheme.is())
                 {
-                    apOverwritePropertiesMap.reset( new tPropertyNameValueMap() );
+                    apOverwritePropertiesMap.reset( new tPropertyNameValueMap );
                     (*apOverwritePropertiesMap)["FillColor"] <<=
                         m_xColorScheme->getColorByIndex( nPointIndex );
                 }
diff --git a/chart2/source/view/main/OpenglShapeFactory.cxx b/chart2/source/view/main/OpenglShapeFactory.cxx
index b06ae6a..cb2cda8 100644
--- a/chart2/source/view/main/OpenglShapeFactory.cxx
+++ b/chart2/source/view/main/OpenglShapeFactory.cxx
@@ -61,7 +61,7 @@ namespace chart
 
 extern "C" {
     SAL_DLLPUBLIC_EXPORT opengl::OpenglShapeFactory* getOpenglShapeFactory()
-                              {    return new opengl::OpenglShapeFactory();}
+                              {    return new opengl::OpenglShapeFactory;}
     }
 
 using dummy::DummyCylinder;
commit db760ac665357a008953d65d223226f165491348
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 20:01:38 2017 +0100

    loplugin:subtlezeroinit: comphelper
    
    Change-Id: I6b97583d9bdc0d0f8c059d0fbc9e3f41f822bf3b

diff --git a/comphelper/qa/container/testifcontainer.cxx b/comphelper/qa/container/testifcontainer.cxx
index b39eef1..f8c9d70 100644
--- a/comphelper/qa/container/testifcontainer.cxx
+++ b/comphelper/qa/container/testifcontainer.cxx
@@ -66,9 +66,9 @@ void TestInterfaceContainer2::test1()
     {
         comphelper::OInterfaceContainerHelper2 helper( mutex );
 
-        Reference< XVetoableChangeListener > r1 = new TestListener();
-        Reference< XVetoableChangeListener > r2 = new TestListener();
-        Reference< XVetoableChangeListener > r3 = new TestListener();
+        Reference< XVetoableChangeListener > r1 = new TestListener;
+        Reference< XVetoableChangeListener > r2 = new TestListener;
+        Reference< XVetoableChangeListener > r3 = new TestListener;
 
         helper.addInterface( r1 );
         helper.addInterface( r2 );
@@ -80,9 +80,9 @@ void TestInterfaceContainer2::test1()
     {
         comphelper::OInterfaceContainerHelper2 helper( mutex );
 
-        Reference< XVetoableChangeListener > r1 = new TestListener();
-        Reference< XVetoableChangeListener > r2 = new TestListener();
-        Reference< XVetoableChangeListener > r3 = new TestListener();
+        Reference< XVetoableChangeListener > r1 = new TestListener;
+        Reference< XVetoableChangeListener > r2 = new TestListener;
+        Reference< XVetoableChangeListener > r3 = new TestListener;
 
         helper.addInterface( r1 );
         helper.addInterface( r2 );
@@ -99,9 +99,9 @@ void TestInterfaceContainer2::test1()
     {
         comphelper::OInterfaceContainerHelper2 helper( mutex );
 
-        Reference< XVetoableChangeListener > r1 = new TestListener();
-        Reference< XVetoableChangeListener > r2 = new TestListener();
-        Reference< XVetoableChangeListener > r3 = new TestListener();
+        Reference< XVetoableChangeListener > r1 = new TestListener;
+        Reference< XVetoableChangeListener > r2 = new TestListener;
+        Reference< XVetoableChangeListener > r3 = new TestListener;
 
         helper.addInterface( r1 );
         helper.addInterface( r2 );
@@ -123,9 +123,9 @@ void TestInterfaceContainer2::test1()
     {
         comphelper::OInterfaceContainerHelper2 helper( mutex );
 
-        Reference< XVetoableChangeListener > r1 = new TestListener();
-        Reference< XVetoableChangeListener > r2 = new TestListener();
-        Reference< XVetoableChangeListener > r3 = new TestListener();
+        Reference< XVetoableChangeListener > r1 = new TestListener;
+        Reference< XVetoableChangeListener > r2 = new TestListener;
+        Reference< XVetoableChangeListener > r3 = new TestListener;
 
         helper.addInterface( r1 );
         helper.addInterface( r2 );
diff --git a/comphelper/source/misc/anycompare.cxx b/comphelper/source/misc/anycompare.cxx
index aa92b70..6c8ecd3 100644
--- a/comphelper/source/misc/anycompare.cxx
+++ b/comphelper/source/misc/anycompare.cxx
@@ -164,60 +164,60 @@ namespace comphelper
         switch ( i_type.getTypeClass() )
         {
         case TypeClass_CHAR:
-            pComparator.reset( new ScalarPredicateLess< sal_Unicode >() );
+            pComparator.reset( new ScalarPredicateLess< sal_Unicode > );
             break;
         case TypeClass_BOOLEAN:
-            pComparator.reset( new ScalarPredicateLess< bool >() );
+            pComparator.reset( new ScalarPredicateLess< bool > );
             break;
         case TypeClass_BYTE:
-            pComparator.reset( new ScalarPredicateLess< sal_Int8 >() );
+            pComparator.reset( new ScalarPredicateLess< sal_Int8 > );
             break;
         case TypeClass_SHORT:
-            pComparator.reset( new ScalarPredicateLess< sal_Int16 >() );
+            pComparator.reset( new ScalarPredicateLess< sal_Int16 > );
             break;
         case TypeClass_UNSIGNED_SHORT:
-            pComparator.reset( new ScalarPredicateLess< sal_uInt16 >() );
+            pComparator.reset( new ScalarPredicateLess< sal_uInt16 > );
             break;
         case TypeClass_LONG:
-            pComparator.reset( new ScalarPredicateLess< sal_Int32 >() );
+            pComparator.reset( new ScalarPredicateLess< sal_Int32 > );
             break;
         case TypeClass_UNSIGNED_LONG:
-            pComparator.reset( new ScalarPredicateLess< sal_uInt32 >() );
+            pComparator.reset( new ScalarPredicateLess< sal_uInt32 > );
             break;
         case TypeClass_HYPER:
-            pComparator.reset( new ScalarPredicateLess< sal_Int64 >() );
+            pComparator.reset( new ScalarPredicateLess< sal_Int64 > );
             break;
         case TypeClass_UNSIGNED_HYPER:
-            pComparator.reset( new ScalarPredicateLess< sal_uInt64 >() );
+            pComparator.reset( new ScalarPredicateLess< sal_uInt64 > );
             break;
         case TypeClass_FLOAT:
-            pComparator.reset( new ScalarPredicateLess< float >() );
+            pComparator.reset( new ScalarPredicateLess< float > );
             break;
         case TypeClass_DOUBLE:
-            pComparator.reset( new ScalarPredicateLess< double >() );
+            pComparator.reset( new ScalarPredicateLess< double > );
             break;
         case TypeClass_STRING:
             if ( i_collator.is() )
                 pComparator.reset( new StringCollationPredicateLess( i_collator ) );
             else
-                pComparator.reset( new StringPredicateLess() );
+                pComparator.reset( new StringPredicateLess );
             break;
         case TypeClass_TYPE:
-            pComparator.reset( new TypePredicateLess() );
+            pComparator.reset( new TypePredicateLess );
             break;
         case TypeClass_ENUM:
             pComparator.reset( new EnumPredicateLess( i_type ) );
             break;
         case TypeClass_INTERFACE:
-            pComparator.reset( new InterfacePredicateLess() );
+            pComparator.reset( new InterfacePredicateLess );
             break;
         case TypeClass_STRUCT:
             if ( i_type.equals( ::cppu::UnoType< Date >::get() ) )
-                pComparator.reset( new DatePredicateLess() );
+                pComparator.reset( new DatePredicateLess );
             else if ( i_type.equals( ::cppu::UnoType< Time >::get() ) )
-                pComparator.reset( new TimePredicateLess() );
+                pComparator.reset( new TimePredicateLess );
             else if ( i_type.equals( ::cppu::UnoType< DateTime >::get() ) )
-                pComparator.reset( new DateTimePredicateLess() );
+                pComparator.reset( new DateTimePredicateLess );
             break;
         default:
             break;
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx
index d6229e9..d822f51 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -489,7 +489,7 @@ bool OStorageHelper::PathHasSegment( const OUString& aPath, const OUString& aSeg
 class LifecycleProxy::Impl
     : public std::vector< uno::Reference< embed::XStorage > > {};
 LifecycleProxy::LifecycleProxy()
-    : m_xBadness( new Impl() ) { }
+    : m_xBadness( new Impl ) { }
 LifecycleProxy::~LifecycleProxy() { }
 
 void LifecycleProxy::commitStorages()
diff --git a/include/comphelper/IdPropArrayHelper.hxx b/include/comphelper/IdPropArrayHelper.hxx
index 59c83f1..cf02323 100644
--- a/include/comphelper/IdPropArrayHelper.hxx
+++ b/include/comphelper/IdPropArrayHelper.hxx
@@ -93,7 +93,7 @@ namespace comphelper
         ::osl::MutexGuard aGuard(OIdPropertyArrayUsageHelperMutex<TYPE>::get());
         // create the map if necessary
         if (s_pMap == nullptr)
-            s_pMap = new OIdPropertyArrayMap();
+            s_pMap = new OIdPropertyArrayMap;
         ++s_nRefCount;
     }
 
commit 6a77b9b6faf0c218b6668aa7d09133f054f25abc
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 20:00:51 2017 +0100

    loplugin:subtlezeroinit: connectivity
    
    Change-Id: I4091b05ecc2f8c2daca94870f2fec9e5c928c07f

diff --git a/connectivity/source/commontools/RowFunctionParser.cxx b/connectivity/source/commontools/RowFunctionParser.cxx
index 30ccbd9..a45f4d9 100644
--- a/connectivity/source/commontools/RowFunctionParser.cxx
+++ b/connectivity/source/commontools/RowFunctionParser.cxx
@@ -388,7 +388,7 @@ private:
 
 const ParserContextSharedPtr& getParserContext()
 {
-    static ParserContextSharedPtr lcl_parserContext( new ParserContext() );
+    static ParserContextSharedPtr lcl_parserContext( new ParserContext );
 
     // clear node stack (since we reuse the static object, that's
     // the whole point here)
diff --git a/connectivity/source/drivers/file/fcomp.cxx b/connectivity/source/drivers/file/fcomp.cxx
index befd561..ff12c45 100644
--- a/connectivity/source/drivers/file/fcomp.cxx
+++ b/connectivity/source/drivers/file/fcomp.cxx
@@ -153,11 +153,11 @@ OOperand* OPredicateCompiler::execute(OSQLParseNode* pPredicateNode)
 
         if (SQL_ISTOKEN(pPredicateNode->getChild(1),OR))                // OR-Operator
         {
-            m_aCodeList.push_back(new OOp_OR());
+            m_aCodeList.push_back(new OOp_OR);
             m_bORCondition = true;
         }
         else if (SQL_ISTOKEN(pPredicateNode->getChild(1),AND))      // AND-Operator
-            m_aCodeList.push_back(new OOp_AND());
+            m_aCodeList.push_back(new OOp_AND);
         else
         {
             OSL_FAIL("OPredicateCompiler: Fehler im Parse Tree");
@@ -166,7 +166,7 @@ OOperand* OPredicateCompiler::execute(OSQLParseNode* pPredicateNode)
     else if (SQL_ISRULE(pPredicateNode,boolean_factor))
     {
         execute(pPredicateNode->getChild(1));
-        m_aCodeList.push_back(new OOp_NOT());
+        m_aCodeList.push_back(new OOp_NOT);
     }
     else if (SQL_ISRULE(pPredicateNode,comparison_predicate))
     {
@@ -190,10 +190,10 @@ OOperand* OPredicateCompiler::execute(OSQLParseNode* pPredicateNode)
         execute(pPredicateNode->getChild(2));                           // process the right branch
         if (SQL_ISPUNCTUATION(pPredicateNode->getChild(1),"+"))
         {
-            m_aCodeList.push_back(new OOp_ADD());
+            m_aCodeList.push_back(new OOp_ADD);
         }
         else if (SQL_ISPUNCTUATION(pPredicateNode->getChild(1),"-"))
-            m_aCodeList.push_back(new OOp_SUB());
+            m_aCodeList.push_back(new OOp_SUB);
         else
         {
             OSL_FAIL("OPredicateCompiler: Fehler im Parse Tree num_value_exp");
@@ -205,10 +205,10 @@ OOperand* OPredicateCompiler::execute(OSQLParseNode* pPredicateNode)
         execute(pPredicateNode->getChild(2));                           // process the right branch
         if (SQL_ISPUNCTUATION(pPredicateNode->getChild(1),"*"))
         {
-            m_aCodeList.push_back(new OOp_MUL());
+            m_aCodeList.push_back(new OOp_MUL);
         }
         else if (SQL_ISPUNCTUATION(pPredicateNode->getChild(1),"/"))
-            m_aCodeList.push_back(new OOp_DIV());
+            m_aCodeList.push_back(new OOp_DIV);
         else
         {
             OSL_FAIL("OPredicateCompiler: Fehler im Parse Tree num_value_exp");
@@ -386,9 +386,9 @@ void OPredicateCompiler::execute_BETWEEN(OSQLParseNode* pPredicateNode)
 
     OBoolOperator* pBoolOp = nullptr;
     if ( bNot )
-        pBoolOp = new OOp_OR();
+        pBoolOp = new OOp_OR;
     else
-        pBoolOp = new OOp_AND();
+        pBoolOp = new OOp_AND;
     m_aCodeList.push_back(pBoolOp);
 }
 
@@ -406,7 +406,7 @@ void OPredicateCompiler::execute_ISNULL(OSQLParseNode* pPredicateNode)
 
     execute(pPredicateNode->getChild(0));
     OBoolOperator* pOperator = (ePredicateType == SQLFilterOperator::SQLNULL) ?
-                                new OOp_ISNULL() : new OOp_ISNOTNULL();
+                                new OOp_ISNULL : new OOp_ISNOTNULL;
     m_aCodeList.push_back(pOperator);
 }
 
@@ -598,9 +598,9 @@ void OPredicateCompiler::execute_Fold(OSQLParseNode* pPredicateNode)
     execute(pPredicateNode->getChild(2));
     OOperator* pOperator = nullptr;
     if ( bUpper )
-        pOperator = new OOp_Upper();
+        pOperator = new OOp_Upper;
     else
-        pOperator = new OOp_Lower();
+        pOperator = new OOp_Lower;
 
     m_aCodeList.push_back(pOperator);
 }
@@ -657,107 +657,107 @@ void OPredicateCompiler::executeFunction(OSQLParseNode* pPredicateNode)
                 case SQL_TOKEN_CHAR_LENGTH:
                 case SQL_TOKEN_LENGTH:
                 case SQL_TOKEN_OCTET_LENGTH:
-                    pOperator = new OOp_CharLength();
+                    pOperator = new OOp_CharLength;
                     break;
                 case SQL_TOKEN_ASCII:
-                    pOperator = new OOp_Ascii();
+                    pOperator = new OOp_Ascii;
                     break;
                 case SQL_TOKEN_LCASE:
-                    pOperator = new OOp_Lower();
+                    pOperator = new OOp_Lower;
                     break;
 
                 case SQL_TOKEN_LTRIM:
-                    pOperator = new OOp_LTrim();
+                    pOperator = new OOp_LTrim;
                     break;
                 case SQL_TOKEN_RTRIM:
-                    pOperator = new OOp_RTrim();
+                    pOperator = new OOp_RTrim;
                     break;
                 case SQL_TOKEN_SPACE:
-                    pOperator = new OOp_Space();
+                    pOperator = new OOp_Space;
                     break;
                 case SQL_TOKEN_UCASE:
-                    pOperator = new OOp_Upper();
+                    pOperator = new OOp_Upper;
                     break;
                 case SQL_TOKEN_ABS:
-                    pOperator = new OOp_Abs();
+                    pOperator = new OOp_Abs;
                     break;
                 case SQL_TOKEN_ACOS:
-                    pOperator = new OOp_ACos();
+                    pOperator = new OOp_ACos;
                     break;
                 case SQL_TOKEN_ASIN:
-                    pOperator = new OOp_ASin();
+                    pOperator = new OOp_ASin;
                     break;
                 case SQL_TOKEN_ATAN:
-                    pOperator = new OOp_ATan();
+                    pOperator = new OOp_ATan;
                     break;
                 case SQL_TOKEN_CEILING:
-                    pOperator = new OOp_Ceiling();
+                    pOperator = new OOp_Ceiling;
                     break;
                 case SQL_TOKEN_COS:
-                    pOperator = new OOp_Cos();
+                    pOperator = new OOp_Cos;
                     break;
                 case SQL_TOKEN_DEGREES:
-                    pOperator = new OOp_Degrees();
+                    pOperator = new OOp_Degrees;
                     break;
                 case SQL_TOKEN_EXP:
-                    pOperator = new OOp_Exp();
+                    pOperator = new OOp_Exp;
                     break;
                 case SQL_TOKEN_FLOOR:
-                    pOperator = new OOp_Floor();
+                    pOperator = new OOp_Floor;
                     break;
                 case SQL_TOKEN_LOG10:
-                    pOperator = new OOp_Log10();
+                    pOperator = new OOp_Log10;
                     break;
                 case SQL_TOKEN_LN:
-                    pOperator = new OOp_Ln();
+                    pOperator = new OOp_Ln;
                     break;
                 case SQL_TOKEN_RADIANS:
-                    pOperator = new OOp_Radians();
+                    pOperator = new OOp_Radians;
                     break;
                 case SQL_TOKEN_SIGN:
-                    pOperator = new OOp_Sign();
+                    pOperator = new OOp_Sign;
                     break;
                 case SQL_TOKEN_SIN:
-                    pOperator = new OOp_Sin();
+                    pOperator = new OOp_Sin;
                     break;
                 case SQL_TOKEN_SQRT:
-                    pOperator = new OOp_Sqrt();
+                    pOperator = new OOp_Sqrt;
                     break;
                 case SQL_TOKEN_TAN:
-                    pOperator = new OOp_Tan();
+                    pOperator = new OOp_Tan;
                     break;
                 case SQL_TOKEN_DAYOFWEEK:
-                    pOperator = new OOp_DayOfWeek();
+                    pOperator = new OOp_DayOfWeek;
                     break;
                 case SQL_TOKEN_DAYOFMONTH:
-                    pOperator = new OOp_DayOfMonth();
+                    pOperator = new OOp_DayOfMonth;
                     break;
                 case SQL_TOKEN_DAYOFYEAR:
-                    pOperator = new OOp_DayOfYear();
+                    pOperator = new OOp_DayOfYear;
                     break;
                 case SQL_TOKEN_MONTH:
-                    pOperator = new OOp_Month();
+                    pOperator = new OOp_Month;
                     break;
                 case SQL_TOKEN_DAYNAME:
-                    pOperator = new OOp_DayName();
+                    pOperator = new OOp_DayName;
                     break;
                 case SQL_TOKEN_MONTHNAME:
-                    pOperator = new OOp_MonthName();
+                    pOperator = new OOp_MonthName;
                     break;
                 case SQL_TOKEN_QUARTER:
-                    pOperator = new OOp_Quarter();
+                    pOperator = new OOp_Quarter;
                     break;
                 case SQL_TOKEN_YEAR:
-                    pOperator = new OOp_Year();
+                    pOperator = new OOp_Year;
                     break;
                 case SQL_TOKEN_HOUR:
-                    pOperator = new OOp_Hour();
+                    pOperator = new OOp_Hour;
                     break;
                 case SQL_TOKEN_MINUTE:
-                    pOperator = new OOp_Minute();
+                    pOperator = new OOp_Minute;
                     break;
                 case SQL_TOKEN_SECOND:
-                    pOperator = new OOp_Second();
+                    pOperator = new OOp_Second;
                     break;
                 default:
                     OSL_FAIL("Error in switch!");
@@ -792,60 +792,60 @@ void OPredicateCompiler::executeFunction(OSQLParseNode* pPredicateNode)
                 switch( nTokenId )
                 {
                     case SQL_TOKEN_CHAR:
-                        pOperator = new OOp_Char();
+                        pOperator = new OOp_Char;
                         break;
                     case SQL_TOKEN_CONCAT:
-                        pOperator = new OOp_Concat();
+                        pOperator = new OOp_Concat;
                         break;
                     case SQL_TOKEN_INSERT:
-                        pOperator = new OOp_Insert();
+                        pOperator = new OOp_Insert;
                         break;
                     case SQL_TOKEN_LEFT:
-                        pOperator = new OOp_Left();
+                        pOperator = new OOp_Left;
                         break;
                     case SQL_TOKEN_LOCATE:
                     case SQL_TOKEN_LOCATE_2:
-                        pOperator = new OOp_Locate();
+                        pOperator = new OOp_Locate;
                         break;
                     case SQL_TOKEN_REPEAT:
-                        pOperator = new OOp_Repeat();
+                        pOperator = new OOp_Repeat;
                         break;
                     case SQL_TOKEN_REPLACE:
-                        pOperator = new OOp_Replace();
+                        pOperator = new OOp_Replace;
                         break;
                     case SQL_TOKEN_RIGHT:
-                        pOperator = new OOp_Right();
+                        pOperator = new OOp_Right;
                         break;
                     case SQL_TOKEN_MOD:
-                        pOperator = new OOp_Mod();
+                        pOperator = new OOp_Mod;
                         break;
                     case SQL_TOKEN_ROUND:
-                        pOperator = new OOp_Round();
+                        pOperator = new OOp_Round;
                         break;
                     case SQL_TOKEN_LOGF:
                     case SQL_TOKEN_LOG:
-                        pOperator = new OOp_Log();
+                        pOperator = new OOp_Log;
                         break;
                     case SQL_TOKEN_POWER:
-                        pOperator = new OOp_Pow();
+                        pOperator = new OOp_Pow;
                         break;
                     case SQL_TOKEN_ATAN2:
-                        pOperator = new OOp_ATan2();
+                        pOperator = new OOp_ATan2;
                         break;
                     case SQL_TOKEN_PI:
-                        pOperator = new OOp_Pi();
+                        pOperator = new OOp_Pi;
                         break;
                     case SQL_TOKEN_CURDATE:
-                        pOperator = new OOp_CurDate();
+                        pOperator = new OOp_CurDate;
                         break;
                     case SQL_TOKEN_CURTIME:
-                        pOperator = new OOp_CurTime();
+                        pOperator = new OOp_CurTime;
                         break;
                     case SQL_TOKEN_NOW:
-                        pOperator = new OOp_Now();
+                        pOperator = new OOp_Now;
                         break;
                     case SQL_TOKEN_WEEK:
-                        pOperator = new OOp_Week();
+                        pOperator = new OOp_Week;
                         break;
                     default:
                         OSL_FAIL("Error in switch!");
@@ -867,7 +867,7 @@ void OPredicateCompiler::executeFunction(OSQLParseNode* pPredicateNode)
                 execute(pPredicateNode->getChild(4));
                 execute(pPredicateNode->getChild(5)->getChild(1));
             }
-            pOperator = new OOp_SubString();
+            pOperator = new OOp_SubString;
             break;
 
         case SQL_TOKEN_POSITION:
@@ -883,7 +883,7 @@ void OPredicateCompiler::executeFunction(OSQLParseNode* pPredicateNode)
                 execute(pPredicateNode->getChild(2));
                 execute(pPredicateNode->getChild(4));
             }
-            pOperator = new OOp_Locate();
+            pOperator = new OOp_Locate;
             break;
         default:
             m_pAnalyzer->getConnection()->throwGenericSQLException(STR_QUERY_FUNCTION_NOT_SUPPORTED,nullptr);
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx
index a9c72a4..fff200b 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.cxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.cxx
@@ -645,7 +645,7 @@ Reference< XNameAccess > Connection::getUsers()
 Reference< XInterface >  ConnectionCreateInstance(
     const Reference< XComponentContext > & ctx )
 {
-    ::rtl::Reference< RefCountedMutex > ref = new RefCountedMutex();
+    ::rtl::Reference< RefCountedMutex > ref = new RefCountedMutex;
     return * new Connection( ref, ctx );
 }
 
commit ee8d9d41f00694c4d568bc6d82316dadc7c01165
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:59:46 2017 +0100

    loplugin:subtlezeroinit: cppu
    
    Change-Id: Ie2bbca4c1d7c4730d4ac655a3711f2b9917face0

diff --git a/cppu/source/threadpool/threadpool.cxx b/cppu/source/threadpool/threadpool.cxx
index e22d4d1..17492c6 100644
--- a/cppu/source/threadpool/threadpool.cxx
+++ b/cppu/source/threadpool/threadpool.cxx
@@ -397,7 +397,7 @@ uno_threadpool_create() SAL_THROW_EXTERN_C()
     ThreadPoolHolder p;
     if( ! g_pThreadpoolHashSet )
     {
-        g_pThreadpoolHashSet = new ThreadpoolHashSet();
+        g_pThreadpoolHashSet = new ThreadpoolHashSet;
         p = new ThreadPool;
     }
     else
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index a7126b5..52d1a2e 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -2101,7 +2101,7 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_new(
 
     if( reallyWeak( eTypeClass ) )
     {
-        typelib_TypeDescriptionReference * pTDR = new typelib_TypeDescriptionReference();
+        typelib_TypeDescriptionReference * pTDR = new typelib_TypeDescriptionReference;
 #if OSL_DEBUG_LEVEL > 0
         osl_atomic_increment( &rInit.nTypeDescriptionReferenceCount );
 #endif
commit b519d132ad7f63e05e38988c6d3291b151e7c682
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:58:35 2017 +0100

    loplugin:subtlezeroinit: cppuhelper
    
    Change-Id: I405ba174a4397938415eee6108ca1f0687b4649a

diff --git a/cppuhelper/source/interfacecontainer.cxx b/cppuhelper/source/interfacecontainer.cxx
index a2f7d7e..6198986 100644
--- a/cppuhelper/source/interfacecontainer.cxx
+++ b/cppuhelper/source/interfacecontainer.cxx
@@ -335,7 +335,7 @@ typedef std::vector< std::pair < Type , void* > > t_type2ptr;
 OMultiTypeInterfaceContainerHelper::OMultiTypeInterfaceContainerHelper( Mutex & rMutex_ )
     : rMutex( rMutex_ )
 {
-    m_pMap = new t_type2ptr();
+    m_pMap = new t_type2ptr;
 }
 
 OMultiTypeInterfaceContainerHelper::~OMultiTypeInterfaceContainerHelper()
@@ -586,7 +586,7 @@ sal_Int32 OMultiTypeInterfaceContainerHelperInt32::addInterface(
 {
     ::osl::MutexGuard aGuard( rMutex );
     if (!m_pMap)
-        m_pMap = new t_long2ptr();
+        m_pMap = new t_long2ptr;
     t_long2ptr * pMap = static_cast<t_long2ptr *>(m_pMap);
     t_long2ptr::iterator iter = findLong( pMap, rKey );
      if( iter == pMap->end() )
commit 06f1b8d46edcf23236c87dc53af8fc7a1541fd61
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:58:17 2017 +0100

    loplugin:subtlezeroinit: cpputools
    
    Change-Id: Ib4a04395f067a3a288a57547daa734c4c9768eb8

diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx
index bed17183..30dda6f 100644
--- a/cpputools/source/unoexe/unoexe.cxx
+++ b/cpputools/source/unoexe/unoexe.cxx
@@ -339,7 +339,7 @@ void ODisposingListener::disposing( const EventObject & )
 
 void ODisposingListener::waitFor( const Reference< XComponent > & xComp )
 {
-    ODisposingListener * pListener = new ODisposingListener();
+    ODisposingListener * pListener = new ODisposingListener;
     Reference< XEventListener > xListener( pListener );
 
     xComp->addEventListener( xListener );
commit aa512ffd39657f7c8924b2b40ad3cdb3b3282158
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:58:01 2017 +0100

    loplugin:subtlezeroinit: cui
    
    Change-Id: Ic206ef85750f8ccbebd28c0c698eda431f75f08b

diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 8cb2bc1..fa4533f 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -2874,7 +2874,7 @@ SvxMainMenuOrganizerDialog::SvxMainMenuOrganizerDialog(
     // Copy the entries list passed in
     if ( entries != nullptr )
     {
-        mpEntries = new SvxEntries();
+        mpEntries = new SvxEntries;
         SvxEntries::const_iterator iter = entries->begin();
 
         while ( iter != entries->end() )
@@ -3075,7 +3075,7 @@ SvxConfigEntry::SvxConfigEntry( const OUString& rDisplayName,
 {
     if (bPopUp)
     {
-        mpEntries = new SvxEntries();
+        mpEntries = new SvxEntries;
     }
 }
 
diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx
index 3172081..4cb5798 100644
--- a/cui/source/tabpages/tpline.cxx
+++ b/cui/source/tabpages/tpline.cxx
@@ -297,7 +297,7 @@ void SvxLineTabPage::InitSymbols(MenuButton* pButton)
 
             SvxBrushItem* pBrushItem = new SvxBrushItem(*it, "", GPOS_AREA, SID_ATTR_BRUSH);
 
-            SvxBmpItemInfo* pInfo = new SvxBmpItemInfo();
+            SvxBmpItemInfo* pInfo = new SvxBmpItemInfo;
             pInfo->pBrushItem = pBrushItem;
             pInfo->nItemId = (sal_uInt16)(MN_GALLERY_ENTRY + i);
             if ( i < m_aGrfBrushItems.size() )
@@ -388,7 +388,7 @@ void SvxLineTabPage::InitSymbols(MenuButton* pButton)
 
             SvxBrushItem* pBrushItem = new SvxBrushItem(Graphic(aMeta), GPOS_AREA, SID_ATTR_BRUSH);
 
-            SvxBmpItemInfo* pInfo = new SvxBmpItemInfo();
+            SvxBmpItemInfo* pInfo = new SvxBmpItemInfo;
             pInfo->pBrushItem = pBrushItem;
             pInfo->nItemId = (sal_uInt16)(MN_GALLERY_ENTRY + i + m_nNumMenuGalleryItems);
             if ( (size_t)(m_nNumMenuGalleryItems + i) < m_aGrfBrushItems.size() ) {
commit fa48d00ddb1f460d6cdfb1d4ed6995e86995a3b5
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:57:44 2017 +0100

    loplugin:subtlezeroinit: desktop
    
    Change-Id: I23ffaa7e5f138f877832ad3afe591980aada6578

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index ae63d49..61fbc61 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2114,7 +2114,7 @@ static bool doc_paste(LibreOfficeKitDocument* pThis, const char* pMimeType, cons
     }
 
     uno::Reference<datatransfer::XTransferable> xTransferable(new LOKTransferable(pMimeType, pData, nSize));
-    uno::Reference<datatransfer::clipboard::XClipboard> xClipboard(new LOKClipboard());
+    uno::Reference<datatransfer::clipboard::XClipboard> xClipboard(new LOKClipboard);
     xClipboard->setContents(xTransferable, uno::Reference<datatransfer::clipboard::XClipboardOwner>());
     pDoc->setClipboard(xClipboard);
     if (!pDoc->isMimeTypeSupported())
commit f407666ec9b56d277bff9ebdea1c0d5cf90c39e8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:57:28 2017 +0100

    loplugin:subtlezeroinit: editeng
    
    Change-Id: I2fb3700f00ad76096d048747c8333337d5ffce8f

diff --git a/editeng/source/misc/txtrange.cxx b/editeng/source/misc/txtrange.cxx
index a5e80f8..91b9669 100644
--- a/editeng/source/misc/txtrange.cxx
+++ b/editeng/source/misc/txtrange.cxx
@@ -491,7 +491,7 @@ void SvxBoundArgs::Concat( const tools::PolyPolygon* pPoly )
     SetConcat( true );
     DBG_ASSERT( pPoly, "Nothing to do?" );
     LongDqPtr pOld = pLongArr;
-    pLongArr = new std::deque<long>();
+    pLongArr = new std::deque<long>;
     aBoolArr.clear();
     bInner = false;
     Calc( *pPoly ); // Note that this updates pLongArr, which is why we swapped it out earlier.
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx
index ed9d780..8dd7992 100644
--- a/editeng/source/rtf/svxrtf.cxx
+++ b/editeng/source/rtf/svxrtf.cxx
@@ -1149,7 +1149,7 @@ SvxRTFItemStackType::~SvxRTFItemStackType()
 void SvxRTFItemStackType::Add(std::unique_ptr<SvxRTFItemStackType> pIns)
 {
     if (!m_pChildList)
-         m_pChildList = new SvxRTFItemStackList();
+         m_pChildList = new SvxRTFItemStackList;
     m_pChildList->push_back(std::move(pIns));
 }
 
diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx
index 53a7ef0..785c268 100644
--- a/editeng/source/uno/unonrule.cxx
+++ b/editeng/source/uno/unonrule.cxx
@@ -536,7 +536,7 @@ sal_Int16 SvxUnoNumberingRules::Compare( const Any& Any1, const Any& Any2 )
 
 Reference< XAnyCompare > SvxCreateNumRuleCompare() throw()
 {
-    return new SvxUnoNumberingRulesCompare();
+    return new SvxUnoNumberingRulesCompare;
 }
 
 css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule() throw()
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index 17e4560..70df9b1 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -2322,7 +2322,7 @@ SvxDummyTextSource::~SvxDummyTextSource()
 
 SvxEditSource* SvxDummyTextSource::Clone() const
 {
-    return new SvxDummyTextSource();
+    return new SvxDummyTextSource;
 }
 
 SvxTextForwarder* SvxDummyTextSource::GetTextForwarder()
commit c5346d44647b4bc3277d24f5e9c922774d981d7f
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:57:05 2017 +0100

    loplugin:subtlezeroinit: filter
    
    Change-Id: I4842b8a82f7fe3a4a5c33da2780ced61d66293ba

diff --git a/filter/source/msfilter/util.cxx b/filter/source/msfilter/util.cxx
index 607791f..714d74d 100644
--- a/filter/source/msfilter/util.cxx
+++ b/filter/source/msfilter/util.cxx
@@ -1186,7 +1186,7 @@ const char* GetOOXMLPresetGeometry( const char* sShapeType )
 {
     if( pCustomShapeTypeTranslationHashMap == nullptr )
     {
-        pCustomShapeTypeTranslationHashMap = new CustomShapeTypeTranslationHashMap ();
+        pCustomShapeTypeTranslationHashMap = new CustomShapeTypeTranslationHashMap;
         for(const msfilter::util::CustomShapeTypeTranslationTable& i : pCustomShapeTypeTranslationTable)
         {
             (*pCustomShapeTypeTranslationHashMap)[ i.sOOo ] = i.sMSO;
@@ -1206,7 +1206,7 @@ MSO_SPT GETVMLShapeType(const OString& aType)
 
     if (!pDMLToVMLMap)
     {
-        pDMLToVMLMap = new DMLToVMLTranslationHashMap();
+        pDMLToVMLMap = new DMLToVMLTranslationHashMap;
         for (auto& i : pDMLToVMLTable)
             (*pDMLToVMLMap)[i.sDML] = i.nVML;
     }
commit c7d59ad8772ffbc7b66a79797a30470a67b1b306
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:56:53 2017 +0100

    loplugin:subtlezeroinit: framework
    
    Change-Id: I88871abd4b57debeb8002a25ef5f59f57e065803

diff --git a/framework/source/fwi/classes/protocolhandlercache.cxx b/framework/source/fwi/classes/protocolhandlercache.cxx
index 0837083..917990f 100644
--- a/framework/source/fwi/classes/protocolhandlercache.cxx
+++ b/framework/source/fwi/classes/protocolhandlercache.cxx
@@ -90,8 +90,8 @@ HandlerCache::HandlerCache()
 
     if (m_nRefCount==0)
     {
-        m_pHandler = new HandlerHash();
-        m_pPattern = new PatternHash();
+        m_pHandler = new HandlerHash;
+        m_pPattern = new PatternHash;
         m_pConfig  = new HandlerCFGAccess(PACKAGENAME_PROTOCOLHANDLER);
         m_pConfig->read(&m_pHandler,&m_pPattern);
         m_pConfig->setCache(this);
commit 87f3a357d2a1aa00a4d55c0bc6a29f686fe024b6
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:56:39 2017 +0100

    loplugin:subtlezeroinit: i18npool
    
    Change-Id: Ie94d8347a2a64e137221709da3e321f1eabb7d1b

diff --git a/i18npool/source/characterclassification/unoscripttypedetector.cxx b/i18npool/source/characterclassification/unoscripttypedetector.cxx
index 78749a1..95c49b6 100644
--- a/i18npool/source/characterclassification/unoscripttypedetector.cxx
+++ b/i18npool/source/characterclassification/unoscripttypedetector.cxx
@@ -86,7 +86,7 @@ com_sun_star_i18n_ScriptTypeDetector_get_implementation(
     css::uno::XComponentContext *,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new UnoScriptTypeDetector());
+    return cppu::acquire(new UnoScriptTypeDetector);
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
commit 1c413e4b9ded15567763dd0be086f7e311ca4dbb
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:56:20 2017 +0100

    loplugin:subtlezeroinit: idlc
    
    Change-Id: Ifec509c4d96a932cfe591b5ffa77027b7b372d52

diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx
index 65451a5..bac987d 100644
--- a/idlc/source/astexpression.cxx
+++ b/idlc/source/astexpression.cxx
@@ -49,7 +49,7 @@ AstExpression::AstExpression(sal_Int32 l)
 {
     fillDefinitionDetails();
 
-    m_exprValue = new AstExprValue();
+    m_exprValue = new AstExprValue;
     m_exprValue->et = ET_long;
     m_exprValue->u.lval = l;
 }
@@ -63,7 +63,7 @@ AstExpression::AstExpression(sal_Int32  l, ExprType et)
 {
     fillDefinitionDetails();
 
-    m_exprValue = new AstExprValue();
+    m_exprValue = new AstExprValue;
     m_exprValue->et = et;
     m_exprValue->u.lval = l;
 }
@@ -77,7 +77,7 @@ AstExpression::AstExpression(sal_Int64  h)
 {
     fillDefinitionDetails();
 
-    m_exprValue = new AstExprValue();
+    m_exprValue = new AstExprValue;
     m_exprValue->et = ET_hyper;
     m_exprValue->u.hval = h;
 }
@@ -91,7 +91,7 @@ AstExpression::AstExpression(sal_uInt64 uh)
 {
     fillDefinitionDetails();
 
-    m_exprValue = new AstExprValue();
+    m_exprValue = new AstExprValue;
     m_exprValue->et = ET_uhyper;
     m_exprValue->u.uhval = uh;
 }
@@ -105,7 +105,7 @@ AstExpression::AstExpression(double d)
 {
     fillDefinitionDetails();
 
-    m_exprValue = new AstExprValue();
+    m_exprValue = new AstExprValue;
     m_exprValue->et = ET_double;
     m_exprValue->u.dval = d;
 }
@@ -847,7 +847,7 @@ std::unique_ptr<AstExprValue> AstExpression::eval_bin_op()
     if (!m_subExpr2->coerce(eType))
         return nullptr;
 
-    std::unique_ptr< AstExprValue > retval(new AstExprValue());
+    std::unique_ptr< AstExprValue > retval(new AstExprValue);
     retval->et = eType;
 
     switch (m_combOperator)
@@ -893,7 +893,7 @@ std::unique_ptr<AstExprValue> AstExpression::eval_bit_op()
     if (!m_subExpr2->coerce(ET_long))
         return nullptr;
 
-    std::unique_ptr< AstExprValue > retval(new AstExprValue());
+    std::unique_ptr< AstExprValue > retval(new AstExprValue);
     retval->et = ET_long;
 
     switch (m_combOperator)
@@ -930,7 +930,7 @@ std::unique_ptr<AstExprValue> AstExpression::eval_un_op()
     if (!m_subExpr1->coerce(ET_double))
         return nullptr;
 
-    std::unique_ptr< AstExprValue > retval(new AstExprValue());
+    std::unique_ptr< AstExprValue > retval(new AstExprValue);
     retval->et = ET_double;
 
     switch (m_combOperator)
diff --git a/idlc/source/idlcproduce.cxx b/idlc/source/idlcproduce.cxx
index 67da2cd..e66bc92 100644
--- a/idlc/source/idlcproduce.cxx
+++ b/idlc/source/idlcproduce.cxx
@@ -83,7 +83,7 @@ static bool checkOutputPath(const OString& completeName)
             } else
             {
                 if ( !pCreatedDirectories )
-                    pCreatedDirectories = new std::list< OString >();
+                    pCreatedDirectories = new std::list< OString >;
                 pCreatedDirectories->push_front(buffer.getStr());
             }
         }
diff --git a/idlc/source/parser.y b/idlc/source/parser.y
index c2c55d1..bcaeea2 100644
--- a/idlc/source/parser.y
+++ b/idlc/source/parser.y
@@ -2074,7 +2074,7 @@ at_least_one_declarator :
             $$ = $2;
         } else
         {
-            FeDeclList* pList = new FeDeclList();
+            FeDeclList* pList = new FeDeclList;
             pList->push_back($1);
             $$ = pList;
         }
@@ -2096,7 +2096,7 @@ declarators :
             $$ = $1;
         } else
         {
-            FeDeclList* pList = new FeDeclList();
+            FeDeclList* pList = new FeDeclList;
             pList->push_back($4);
             $$ = pList;
         }
@@ -2135,7 +2135,7 @@ at_least_one_scoped_name :
             $$ = $2;
         } else
         {
-            std::list< OString >* pScopedNames = new std::list< OString >();
+            std::list< OString >* pScopedNames = new std::list< OString >;
             // coverity [copy_paste_error]
             pScopedNames->push_back(*$1);
             $$ = pScopedNames;
@@ -2159,7 +2159,7 @@ scoped_names :
             $$ = $1;
         } else
         {
-            std::list< OString >* pNames = new std::list< OString >();
+            std::list< OString >* pNames = new std::list< OString >;
             pNames->push_back(*$4);
             $$ = pNames;
         }
commit b3531d10e86a0e1750180422a664c98f69e38b66
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:46:40 2017 +0100

    loplugin:subtlezeroinit: l10ntools
    
    Change-Id: I7732da89b1e48738b5bc0d5f8045bee0fe079e85

diff --git a/l10ntools/source/lngmerge.cxx b/l10ntools/source/lngmerge.cxx
index 0411e1c..646cd02 100644
--- a/l10ntools/source/lngmerge.cxx
+++ b/l10ntools/source/lngmerge.cxx
@@ -53,7 +53,7 @@ LngParser::LngParser(const OString &rLngFile)
     , pLines( nullptr )
     , sSource( rLngFile )
 {
-    pLines = new LngLineList();
+    pLines = new LngLineList;
     std::ifstream aStream(sSource.getStr());
     if (aStream.is_open())
     {
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index b3d8c1d..7281c73 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -86,7 +86,7 @@ XMLParentNode::XMLParentNode( const XMLParentNode& rObj)
 {
     if( rObj.m_pChildList )
     {
-        m_pChildList.reset( new XMLChildNodeList() );
+        m_pChildList.reset( new XMLChildNodeList );
         for ( size_t i = 0; i < rObj.m_pChildList->size(); i++ )
         {
             XMLChildNode* pNode = (*rObj.m_pChildList)[ i ];
@@ -120,7 +120,7 @@ XMLParentNode& XMLParentNode::operator=(const XMLParentNode& rObj)
         }
         if( rObj.m_pChildList )
         {
-            m_pChildList.reset( new XMLChildNodeList() );
+            m_pChildList.reset( new XMLChildNodeList );
             for ( size_t i = 0; i < rObj.m_pChildList->size(); i++ )
                 AddChild( (*rObj.m_pChildList)[ i ] );
         }
@@ -133,7 +133,7 @@ XMLParentNode& XMLParentNode::operator=(const XMLParentNode& rObj)
 void XMLParentNode::AddChild( XMLChildNode *pChild )
 {
     if ( !m_pChildList )
-        m_pChildList.reset( new XMLChildNodeList() );
+        m_pChildList.reset( new XMLChildNodeList );
     m_pChildList->push_back( pChild );
 }
 
@@ -326,7 +326,7 @@ XMLFile::XMLFile( const OString &rFileName ) // the file name, empty if created
 
 void XMLFile::Extract()
 {
-    m_pXMLStrings.reset( new XMLHashMap() );
+    m_pXMLStrings.reset( new XMLHashMap );
     SearchL10NElements( this );
 }
 
@@ -364,7 +364,7 @@ void XMLFile::InsertL10NElement( XMLElement* pElement )
     XMLHashMap::iterator pos = m_pXMLStrings->find( sId );
     if( pos == m_pXMLStrings->end() ) // No instance, create new one
     {
-        pElem = new LangHashMap();
+        pElem = new LangHashMap;
         (*pElem)[ sLanguage ]=pElement;
         m_pXMLStrings->insert( XMLHashMap::value_type( sId , pElem ) );
         m_vOrder.push_back( sId );
@@ -405,11 +405,11 @@ XMLFile& XMLFile::operator=(const XMLFile& rObj)
 
         if( rObj.m_pXMLStrings )
         {
-            m_pXMLStrings.reset( new XMLHashMap() );
+            m_pXMLStrings.reset( new XMLHashMap );
             for( XMLHashMap::iterator pos = rObj.m_pXMLStrings->begin() ; pos != rObj.m_pXMLStrings->end() ; ++pos )
             {
                 LangHashMap* pElem=pos->second;
-                LangHashMap* pNewelem = new LangHashMap();
+                LangHashMap* pNewelem = new LangHashMap;
                 for(LangHashMap::iterator pos2=pElem->begin(); pos2!=pElem->end();++pos2)
                 {
                     (*pNewelem)[ pos2->first ] = new XMLElement( *pos2->second );
@@ -572,7 +572,7 @@ XMLElement::XMLElement(const XMLElement& rObj)
 {
     if ( rObj.m_pAttributes )
     {
-        m_pAttributes.reset( new XMLAttributeList() );
+        m_pAttributes.reset( new XMLAttributeList );
         for ( size_t i = 0; i < rObj.m_pAttributes->size(); i++ )
             AddAttribute( (*rObj.m_pAttributes)[ i ]->GetName(), (*rObj.m_pAttributes)[ i ]->GetValue() );
     }
@@ -597,7 +597,7 @@ XMLElement& XMLElement::operator=(const XMLElement& rObj)
         }
         if ( rObj.m_pAttributes )
         {
-            m_pAttributes.reset( new XMLAttributeList() );
+            m_pAttributes.reset( new XMLAttributeList );
             for ( size_t i = 0; i < rObj.m_pAttributes->size(); i++ )
                 AddAttribute( (*rObj.m_pAttributes)[ i ]->GetName(), (*rObj.m_pAttributes)[ i ]->GetValue() );
         }
@@ -608,7 +608,7 @@ XMLElement& XMLElement::operator=(const XMLElement& rObj)
 void XMLElement::AddAttribute( const OString &rAttribute, const OString &rValue )
 {
     if ( !m_pAttributes )
-        m_pAttributes.reset( new XMLAttributeList() );
+        m_pAttributes.reset( new XMLAttributeList );
     m_pAttributes->push_back( new XMLAttribute( rAttribute, rValue ) );
 }
 
commit d1ffd54cf4acb8865019f2fceffd1b3682720aa1
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:45:31 2017 +0100

    loplugin:subtlezeroinit: oox
    
    Change-Id: I8a1b6baba6191b20264f32cbf73f5d75bc50235b

diff --git a/oox/source/crypto/DocumentDecryption.cxx b/oox/source/crypto/DocumentDecryption.cxx
index 8f0084c..f93f903 100644
--- a/oox/source/crypto/DocumentDecryption.cxx
+++ b/oox/source/crypto/DocumentDecryption.cxx
@@ -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();
 
diff --git a/oox/source/drawingml/customshapegeometry.cxx b/oox/source/drawingml/customshapegeometry.cxx
index c405029..b6d6e19 100644
--- a/oox/source/drawingml/customshapegeometry.cxx
+++ b/oox/source/drawingml/customshapegeometry.cxx
@@ -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;
diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx
index 9a60cd2..7d39719 100644
--- a/oox/source/drawingml/diagram/diagram.cxx
+++ b/oox/source/drawingml/diagram/diagram.cxx
@@ -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
diff --git a/oox/source/ppt/pptshapegroupcontext.cxx b/oox/source/ppt/pptshapegroupcontext.cxx
index 1f36de8..0847eb8 100644
--- a/oox/source/ppt/pptshapegroupcontext.cxx
+++ b/oox/source/ppt/pptshapegroupcontext.cxx
@@ -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);
                 }
diff --git a/oox/source/ppt/slidefragmenthandler.cxx b/oox/source/ppt/slidefragmenthandler.cxx
index bd7b6f1..c9af6b5 100644
--- a/oox/source/ppt/slidefragmenthandler.cxx
+++ b/oox/source/ppt/slidefragmenthandler.cxx
@@ -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;
commit d763944d302a72e300b63ac9c5eb54f1ae2eef77
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:43:40 2017 +0100

    loplugin:subtlezeroinit: pyuno
    
    Change-Id: Id36181c096cbd6f87288fda7f8d37996b538d9bf

diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx
index 0281f70..044eec3 100644
--- a/pyuno/source/module/pyuno.cxx
+++ b/pyuno/source/module/pyuno.cxx
@@ -1722,7 +1722,7 @@ PyRef PyUNO_new (
     PyUNO* self = PyObject_New (PyUNO, &PyUNOType);
     if (self == nullptr)
         return PyRef(); // == error
-    self->members = new PyUNOInternals();
+    self->members = new PyUNOInternals;
     self->members->xInvocation = xInvocation;
     self->members->wrappedObject = targetInterface;
     return PyRef( reinterpret_cast<PyObject*>(self), SAL_NO_ACQUIRE );
diff --git a/pyuno/source/module/pyuno_iterator.cxx b/pyuno/source/module/pyuno_iterator.cxx
index 71ccb03..5a36a32 100644
--- a/pyuno/source/module/pyuno_iterator.cxx
+++ b/pyuno/source/module/pyuno_iterator.cxx
@@ -171,7 +171,7 @@ PyObject* PyUNO_iterator_new( const Reference< XEnumeration >& xEnumeration )
     PyUNO_iterator* self = PyObject_New( PyUNO_iterator, &PyUNO_iterator_Type );
     if ( self == nullptr )
         return nullptr; // == error
-    self->members = new PyUNO_iterator_Internals();
+    self->members = new PyUNO_iterator_Internals;
     self->members->xEnumeration = xEnumeration;
     return reinterpret_cast<PyObject*>(self);
 }
@@ -301,7 +301,7 @@ PyObject* PyUNO_list_iterator_new( const Reference<XIndexAccess> &xIndexAccess )
     PyUNO_list_iterator* self = PyObject_New( PyUNO_list_iterator, &PyUNO_list_iterator_Type );
     if ( self == nullptr )
         return nullptr; // == error
-    self->members = new PyUNO_list_iterator_Internals();
+    self->members = new PyUNO_list_iterator_Internals;
     self->members->xIndexAccess = xIndexAccess;
     self->members->index = 0;
     return reinterpret_cast<PyObject*>(self);
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx
index 69e5a17..a51060d 100644
--- a/pyuno/source/module/pyuno_runtime.cxx
+++ b/pyuno/source/module/pyuno_runtime.cxx
@@ -257,7 +257,7 @@ PyRef stRuntimeImpl::create( const Reference< XComponentContext > &ctx )
     me->cargo = nullptr;
     // must use a different struct here, as the PyObject_New
     // makes C++ unusable
-    RuntimeCargo *c = new RuntimeCargo();
+    RuntimeCargo *c = new RuntimeCargo;
     readLoggingConfig( &(c->logLevel) , &(c->logFile) );
     log( c, LogLevel::CALL, "Instantiating pyuno bridge" );
 
diff --git a/pyuno/source/module/pyuno_struct.cxx b/pyuno/source/module/pyuno_struct.cxx
index be8e0b9..e2d7acc 100644
--- a/pyuno/source/module/pyuno_struct.cxx
+++ b/pyuno/source/module/pyuno_struct.cxx
@@ -376,7 +376,7 @@ PyRef PyUNOStruct_new (
     PyUNO* self = PyObject_New (PyUNO, &PyUNOStructType);
     if (self == nullptr)
         return PyRef(); // == error
-    self->members = new PyUNOInternals();
+    self->members = new PyUNOInternals;
     self->members->xInvocation = xInvocation;
     self->members->wrappedObject = targetInterface;
     return PyRef( reinterpret_cast<PyObject*>(self), SAL_NO_ACQUIRE );
commit 90d5827b2dd9d5a67b44d157ec9094ebb5b64edf
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:43:14 2017 +0100

    loplugin:subtlezeroinit: reportdesign
    
    Change-Id: I20b7cf2b65900eb336e1a3c6f301eb08b47485a4

diff --git a/reportdesign/source/core/sdr/RptObject.cxx b/reportdesign/source/core/sdr/RptObject.cxx
index 7a99c39..ab5cf3a 100644
--- a/reportdesign/source/core/sdr/RptObject.cxx
+++ b/reportdesign/source/core/sdr/RptObject.cxx
@@ -241,7 +241,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
                 static TPropertyNamePair s_aNameMap;
                 if ( s_aNameMap.empty() )
                 {
-                    std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
+                    std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBACKGROUND,TPropertyConverter(PROPERTY_BACKGROUNDCOLOR,aNoConverter)));
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDER,TPropertyConverter(PROPERTY_BORDER,aNoConverter)));
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDERCOLOR,TPropertyConverter(PROPERTY_BORDERCOLOR,aNoConverter)));
@@ -254,7 +254,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
                 static TPropertyNamePair s_aNameMap;
                 if ( s_aNameMap.empty() )
                 {
-                    std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
+                    std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CHARCOLOR,TPropertyConverter(PROPERTY_TEXTCOLOR,aNoConverter)));
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBACKGROUND,TPropertyConverter(PROPERTY_BACKGROUNDCOLOR,aNoConverter)));
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CHARUNDERLINECOLOR,TPropertyConverter(PROPERTY_TEXTLINECOLOR,aNoConverter)));
@@ -265,7 +265,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDER,TPropertyConverter(PROPERTY_BORDER,aNoConverter)));
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDERCOLOR,TPropertyConverter(PROPERTY_BORDERCOLOR,aNoConverter)));
 
-                    std::shared_ptr<AnyConverter> aParaAdjust(new ParaAdjust());
+                    std::shared_ptr<AnyConverter> aParaAdjust(new ParaAdjust);
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_PARAADJUST,TPropertyConverter(PROPERTY_ALIGN,aParaAdjust)));
                 }
                 return s_aNameMap;
@@ -275,7 +275,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
                 static TPropertyNamePair s_aNameMap;
                 if ( s_aNameMap.empty() )
                 {
-                    std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
+                    std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CHARCOLOR,TPropertyConverter(PROPERTY_TEXTCOLOR,aNoConverter)));
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBACKGROUND,TPropertyConverter(PROPERTY_BACKGROUNDCOLOR,aNoConverter)));
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CHARUNDERLINECOLOR,TPropertyConverter(PROPERTY_TEXTLINECOLOR,aNoConverter)));
@@ -285,7 +285,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLTEXTEMPHASISMARK,TPropertyConverter(PROPERTY_FONTEMPHASISMARK,aNoConverter)));
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDER,TPropertyConverter(PROPERTY_BORDER,aNoConverter)));
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_CONTROLBORDERCOLOR,TPropertyConverter(PROPERTY_BORDERCOLOR,aNoConverter)));
-                    std::shared_ptr<AnyConverter> aParaAdjust(new ParaAdjust());
+                    std::shared_ptr<AnyConverter> aParaAdjust(new ParaAdjust);
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_PARAADJUST,TPropertyConverter(PROPERTY_ALIGN,aParaAdjust)));
                 }
                 return s_aNameMap;
@@ -296,7 +296,7 @@ const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId)
                 static TPropertyNamePair s_aNameMap;
                 if ( s_aNameMap.empty() )
                 {
-                    std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
+                    std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
                     s_aNameMap.insert(TPropertyNamePair::value_type(OUString("FillColor"),TPropertyConverter(PROPERTY_CONTROLBACKGROUND,aNoConverter)));
                     s_aNameMap.insert(TPropertyNamePair::value_type(PROPERTY_PARAADJUST,TPropertyConverter(PROPERTY_ALIGN,aNoConverter)));
                 }
diff --git a/reportdesign/source/ui/inspection/DataProviderHandler.cxx b/reportdesign/source/ui/inspection/DataProviderHandler.cxx
index 34bd6f9..470bfe6 100644
--- a/reportdesign/source/ui/inspection/DataProviderHandler.cxx
+++ b/reportdesign/source/ui/inspection/DataProviderHandler.cxx
@@ -146,7 +146,7 @@ void SAL_CALL DataProviderHandler::inspect(const uno::Reference< uno::XInterface
         m_xReportComponent.set( xNameCont->getByName("ReportComponent"), uno::UNO_QUERY );
         if ( m_xDataProvider.is() )
         {
-            std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
+            std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
             TPropertyNamePair aPropertyMediation;
             aPropertyMediation.insert( TPropertyNamePair::value_type( PROPERTY_MASTERFIELDS, TPropertyConverter(PROPERTY_MASTERFIELDS,aNoConverter) ) );
             aPropertyMediation.insert( TPropertyNamePair::value_type( PROPERTY_DETAILFIELDS, TPropertyConverter(PROPERTY_DETAILFIELDS,aNoConverter) ) );
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index df020cb..d8cd184 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -2987,7 +2987,7 @@ uno::Reference< sdbc::XRowSet > const & OReportController::getRowSet()
         xRowSetProp->setPropertyValue( PROPERTY_ACTIVECONNECTION, uno::makeAny( getConnection() ) );
         xRowSetProp->setPropertyValue( PROPERTY_APPLYFILTER, uno::makeAny( true ) );
 
-        std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter());
+        std::shared_ptr<AnyConverter> aNoConverter(new AnyConverter);
         TPropertyNamePair aPropertyMediation;
         aPropertyMediation.insert( TPropertyNamePair::value_type( PROPERTY_COMMAND, TPropertyConverter(PROPERTY_COMMAND,aNoConverter) ) );
         aPropertyMediation.insert( TPropertyNamePair::value_type( PROPERTY_COMMANDTYPE, TPropertyConverter(PROPERTY_COMMANDTYPE,aNoConverter) ) );
commit 33b4e73f7893e38a150ed67ab57d0167c9845944
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:42:45 2017 +0100

    loplugin:subtlezeroinit: sal
    
    Change-Id: I70e79b6fd36c3ccff9e6906f46cecaa0f19c5a7f

diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx
index ebff1e3..31e369c 100644
--- a/sal/qa/osl/process/osl_Thread.cxx
+++ b/sal/qa/osl/process/osl_Thread.cxx
@@ -452,7 +452,7 @@ namespace osl_Thread
         */
         void create_001()
             {
-                myThread* newthread = new myThread();
+                myThread* newthread = new myThread;
                 bool bRes = newthread->create();
                 CPPUNIT_ASSERT_MESSAGE("Can not creates a new thread!\n", bRes);
 
@@ -479,7 +479,7 @@ namespace osl_Thread
          */
         void create_002()
             {
-                myThread* newthread = new myThread();
+                myThread* newthread = new myThread;
                 bool res1 = newthread->create();
                 bool res2 = newthread->create();
                 t_print("In non pro, an assertion should occurred. This behaviour is right.\n");
@@ -510,7 +510,7 @@ namespace osl_Thread
         */
         void createSuspended_001()
             {
-                myThread* newthread = new myThread();
+                myThread* newthread = new myThread;
                 bool bRes = newthread->createSuspended();
                 CPPUNIT_ASSERT_MESSAGE("Can not creates a new thread!", bRes);
 
@@ -532,7 +532,7 @@ namespace osl_Thread
 
         void createSuspended_002()
             {
-                myThread* newthread = new myThread();
+                myThread* newthread = new myThread;
                 bool res1 = newthread->createSuspended();
                 bool res2 = newthread->createSuspended();
 
@@ -667,7 +667,7 @@ namespace osl_Thread
          */
         void resume_002()
             {
-                myThread* newthread = new myThread();
+                myThread* newthread = new myThread;
                 bool bRes = newthread->createSuspended();
                 CPPUNIT_ASSERT_MESSAGE ( "Can't create thread!", bRes );
 
commit 6af2e7b219bd3e4cf0496cb9fd3442ba2291de09
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:42:04 2017 +0100

    loplugin:subtlezeroinit: sax
    
    Change-Id: I4a2ce1951b01fb1878a5b2c21b72f59728369cab

diff --git a/sax/qa/cppunit/xmlimport.cxx b/sax/qa/cppunit/xmlimport.cxx
index 40e3b50..7296428 100644
--- a/sax/qa/cppunit/xmlimport.cxx
+++ b/sax/qa/cppunit/xmlimport.cxx
@@ -356,7 +356,7 @@ void XMLImportTest::setUp()
     m_xLegacyFastParser->setDocumentHandler( m_xDocumentHandler.get() );
 
     Reference< XFastTokenHandler > xTokenHandler;
-    xTokenHandler.set( new DummyTokenHandler() );
+    xTokenHandler.set( new DummyTokenHandler );
     uno::Reference<lang::XInitialization> const xInit(m_xLegacyFastParser,
                             uno::UNO_QUERY_THROW);
     uno::Sequence<uno::Any> args(1);
commit 41242d35df47ec8fd6b20e7779a4e650aa83cdfb
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 19:41:29 2017 +0100

    loplugin:subtlezeroinit: sc
    
    Change-Id: I98e433441e97d0f2e88f84cd9b3cf91861465bff

diff --git a/sc/source/core/data/funcdesc.cxx b/sc/source/core/data/funcdesc.cxx
index 9be95e7..d745eaa 100644
--- a/sc/source/core/data/funcdesc.cxx
+++ b/sc/source/core/data/funcdesc.cxx
@@ -1074,7 +1074,7 @@ ScFunctionMgr::ScFunctionMgr() :
     OSL_ENSURE( pFuncList, "Functionlist not found." );
     sal_uInt32 catCount[MAX_FUNCCAT] = {0};
 
-    aCatLists[0] = new ::std::vector<const ScFuncDesc*>();
+    aCatLists[0] = new ::std::vector<const ScFuncDesc*>;
     aCatLists[0]->reserve(pFuncList->GetCount());
 
     // Retrieve all functions, store in cumulative ("All") category, and count
@@ -1093,7 +1093,7 @@ ScFunctionMgr::ScFunctionMgr() :
     // Allocate correct amount of space for categories
     for (sal_uInt16 i = 1; i < MAX_FUNCCAT; ++i)
     {
-        aCatLists[i] = new ::std::vector<const ScFuncDesc*>();
+        aCatLists[i] = new ::std::vector<const ScFuncDesc*>;
         aCatLists[i]->reserve(catCount[i]);
     }
 
diff --git a/sc/source/core/tool/adiasync.cxx b/sc/source/core/tool/adiasync.cxx
index 7d2150f..ee531d5 100644
--- a/sc/source/core/tool/adiasync.cxx
+++ b/sc/source/core/tool/adiasync.cxx
@@ -48,7 +48,7 @@ ScAddInAsync::ScAddInAsync(sal_uLong nHandleP, LegacyFuncData* pFuncData, ScDocu
     meType(pFuncData->GetAsyncType()),
     bValid( false )
 {
-    pDocs = new ScAddInDocs();
+    pDocs = new ScAddInDocs;
     pDocs->insert( pDoc );
     theAddInAsyncTbl.insert( this );
 }
diff --git a/sc/source/core/tool/calcconfig.cxx b/sc/source/core/tool/calcconfig.cxx
index c7cb013..2a0b1f3 100644
--- a/sc/source/core/tool/calcconfig.cxx
+++ b/sc/source/core/tool/calcconfig.cxx
@@ -170,7 +170,7 @@ OUString ScOpCodeSetToSymbolicString(const ScCalcConfig::OpCodeSet& rOpCodes)
 
 ScCalcConfig::OpCodeSet ScStringToOpCodeSet(const OUString& rOpCodes)
 {
-    ScCalcConfig::OpCodeSet result(new std::set< OpCode >());
+    ScCalcConfig::OpCodeSet result(new std::set< OpCode >);
     formula::FormulaCompiler aCompiler;
     formula::FormulaCompiler::OpCodeMapPtr pOpCodeMap(aCompiler.GetOpCodeMap(css::sheet::FormulaLanguage::ENGLISH));
 
diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx
index 16837e0..ba26604 100644
--- a/sc/source/filter/excel/impop.cxx
+++ b/sc/source/filter/excel/impop.cxx
@@ -130,7 +130,7 @@ ImportExcel::ImportExcel( XclImpRootData& rImpData, SvStream& rStrm ):
     pExcRoot->pShrfmlaBuff = new SharedFormulaBuffer( pExcRoot );     //&aShrfrmlaBuff;
     pExcRoot->pExtNameBuff = new ExtNameBuff ( *this );
 
-    pOutlineListBuffer = new XclImpOutlineListBuffer( );
+    pOutlineListBuffer = new XclImpOutlineListBuffer;
 
     // ab Biff8
     pFormConv = pExcRoot->pFmlaConverter = new ExcelToSc( GetRoot() );
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index f13aa29..1bb6619 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -3032,7 +3032,7 @@ XclExpDxfs::XclExpDxfs( const XclExpRoot& rRoot )
                             pCellProt = nullptr;
                         }
 
-                        XclExpColor* pColor = new XclExpColor();
+                        XclExpColor* pColor = new XclExpColor;
                         if(!pColor->FillFromItemSet( rSet ))
                         {
                             delete pColor;
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index 9f7bc26..3f2ef7e 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -1285,7 +1285,7 @@ void ScHTMLExport::CopyLocalFileToINet( OUString& rFileNm,
         }
         else
         {
-            pFileNameMap.reset( new std::map<OUString, OUString>() );
+            pFileNameMap.reset( new std::map<OUString, OUString> );
         }
 
         bool bRet = false;
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index f5e2ee1..f48cad0 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -682,7 +682,7 @@ SvXMLImportContext *ScXMLTableRowCellContext::CreateChildContext( sal_uInt16 nPr
         {
             bIsEmpty = false;
             if (!pDetectiveObjVec)
-                pDetectiveObjVec = new ScMyImpDetectiveObjVec();
+                pDetectiveObjVec = new ScMyImpDetectiveObjVec;
             pContext = new ScXMLDetectiveContext(
                 rXMLImport, nPrefix, rLName, pDetectiveObjVec );
         }
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index c7f169f..01e88a3 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -367,7 +367,7 @@ ScXMLExport::ScXMLExport(
         pMergedRangesContainer = new ScMyMergedRangesContainer();
         pValidationsContainer = new ScMyValidationsContainer();
         mpCellsItr.reset(new ScMyNotEmptyCellsIterator(*this));
-        pDefaults = new ScMyDefaultStyles();
+        pDefaults = new ScMyDefaultStyles;
     }
     pCellStyles = new ScFormatRangeStyles();
 
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index 0832f3d..34208af 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -3040,7 +3040,7 @@ XMLNumberFormatAttributesExportHelper* ScXMLImport::GetNumberFormatAttributesExp
 ScMyStyleNumberFormats* ScXMLImport::GetStyleNumberFormats()
 {
     if (!pStyleNumberFormats)
-        pStyleNumberFormats = new ScMyStyleNumberFormats();
+        pStyleNumberFormats = new ScMyStyleNumberFormats;
     return pStyleNumberFormats;
 }
 
diff --git a/sc/source/filter/xml/xmlimprt.hxx b/sc/source/filter/xml/xmlimprt.hxx
index 0a0c8f7..e11e61e 100644
--- a/sc/source/filter/xml/xmlimprt.hxx
+++ b/sc/source/filter/xml/xmlimprt.hxx
@@ -1096,7 +1096,7 @@ public:
     void AddNamedExpression(ScMyNamedExpression* pMyNamedExpression)
     {
         if (!m_pMyNamedExpressions)
-            m_pMyNamedExpressions = new ScMyNamedExpressions();
+            m_pMyNamedExpressions = new ScMyNamedExpressions;
         m_pMyNamedExpressions->push_back(std::unique_ptr<ScMyNamedExpression>(pMyNamedExpression));
     }
 
@@ -1104,12 +1104,12 @@ public:
 
     void    AddLabelRange(const ScMyLabelRange* pMyLabelRange) {
         if (!pMyLabelRanges)
-            pMyLabelRanges = new ScMyLabelRanges();
+            pMyLabelRanges = new ScMyLabelRanges;
         pMyLabelRanges->push_back(pMyLabelRange); }
 
     void AddValidation(const ScMyImportValidation& rValidation) {
         if (!pValidations)
-            pValidations = new ScMyImportValidations();
+            pValidations = new ScMyImportValidations;
         pValidations->push_back(rValidation); }
     bool GetValidation(const OUString& sName, ScMyImportValidation& aValidation);
 
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index d8c03f4..8c302a6 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -1611,7 +1611,7 @@ class InsertTabNumber : public unary_function<ScTokenRef, void>
 {
 public:
     InsertTabNumber() :
-        mpTabNumList(new list<SCTAB>())
+        mpTabNumList(new list<SCTAB>)
     {
     }
 
@@ -2780,7 +2780,7 @@ void ScChart2DataSequence::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint
         // updated, and bring the change back to the token list.
 
         ScRangeList aRanges;
-        m_pRangeIndices.reset(new vector<sal_uInt32>());
+        m_pRangeIndices.reset(new vector<sal_uInt32>);
         vector<ScTokenRef>::const_iterator itrBeg = m_aTokens.begin(), itrEnd = m_aTokens.end();
         for (vector<ScTokenRef>::const_iterator itr = itrBeg ;itr != itrEnd; ++itr)
         {
commit f34942333ffe1117253a761732a8f65aac4f11b0
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 12:33:36 2017 +0100

    loplugin:subtlezeroinit: scripting
    
    Change-Id: Id59b79c8e01ca66924b8a8de1c513ce97658e361

diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx
index 9c74331..ccfd788 100644
--- a/scripting/source/dlgprov/dlgprov.cxx
+++ b/scripting/source/dlgprov/dlgprov.cxx
@@ -589,7 +589,7 @@ namespace dlgprov
         {
             // call from RTL_Impl_CreateUnoDialog
             aArguments[0] >>= m_xModel;
-            m_BasicInfo.reset( new BasicRTLParams() );
+            m_BasicInfo.reset( new BasicRTLParams );
             m_BasicInfo->mxInput.set( aArguments[ 1 ], UNO_QUERY_THROW );
             // allow null mxDlgLib, a document dialog instantiated from
             // from application basic is unable to provide ( or find ) it's
diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx
index e74b9f9..33b8dd5 100644
--- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx
+++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx
@@ -230,7 +230,7 @@ private:
 
     void loadChildNodes()
     {
-        m_hBNA = new BrowseNodeAggregatorHash();
+        m_hBNA = new BrowseNodeAggregatorHash;
 
         Sequence< Reference< browse::XBrowseNode > > langNodes =
             m_origNode->getChildNodes();
commit fa177eb3e3f6698c2798d85f0a287607221fa695
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 12:33:19 2017 +0100

    loplugin:subtlezeroinit: sd
    
    Change-Id: I2cfa2507235d51c5518123a290abfa6a4f945872

diff --git a/sd/source/core/stlfamily.cxx b/sd/source/core/stlfamily.cxx
index 2099abc..ee8db41 100644
--- a/sd/source/core/stlfamily.cxx
+++ b/sd/source/core/stlfamily.cxx
@@ -101,7 +101,7 @@ SdStyleFamily::SdStyleFamily( const rtl::Reference< SfxStyleSheetPool >& xPool,
 SdStyleFamily::SdStyleFamily( const rtl::Reference< SfxStyleSheetPool >& xPool, const SdPage* pMasterPage )
 : mnFamily( SD_STYLE_FAMILY_MASTERPAGE )
 , mxPool( xPool )
-, mpImpl( new SdStyleFamilyImpl() )
+, mpImpl( new SdStyleFamilyImpl )
 {
     mpImpl->mxMasterPage.reset( const_cast< SdPage* >( pMasterPage ) );
     mpImpl->mxPool = xPool;
diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx
index b62fa85..387b817 100644
--- a/sd/source/ui/animations/SlideTransitionPane.cxx
+++ b/sd/source/ui/animations/SlideTransitionPane.cxx
@@ -570,7 +570,7 @@ void SlideTransitionPane::onChangeCurrentPage()
     }
     else
     {
-        pSelection.reset(new sd::slidesorter::SlideSorterViewShell::PageSelection());
+        pSelection.reset(new sd::slidesorter::SlideSorterViewShell::PageSelection);
         if( mxView.is() )
         {
             SdPage* pPage = SdPage::getImplementation( mxView->getCurrentPage() );
@@ -1014,7 +1014,7 @@ IMPL_LINK_NOARG(SlideTransitionPane, ApplyToAllButtonClicked, Button*, void)
         return;
 
     ::sd::slidesorter::SharedPageSelection pPages (
-        new ::sd::slidesorter::SlideSorterViewShell::PageSelection());
+        new ::sd::slidesorter::SlideSorterViewShell::PageSelection);
 
     sal_uInt16 nPageCount = mpDrawDoc->GetSdPageCount( PageKind::Standard );
     pPages->reserve( nPageCount );
diff --git a/sd/source/ui/dlg/TemplateScanner.cxx b/sd/source/ui/dlg/TemplateScanner.cxx
index edc802b..b81d470 100644
--- a/sd/source/ui/dlg/TemplateScanner.cxx
+++ b/sd/source/ui/dlg/TemplateScanner.cxx
@@ -154,7 +154,7 @@ TemplateScanner::TemplateScanner()
       mpTemplateDirectory(nullptr),
       maFolderList(),
       mpLastAddedEntry(nullptr),
-      mpFolderDescriptors(new FolderDescriptorList()),
+      mpFolderDescriptors(new FolderDescriptorList),
       mxTemplateRoot(),
       mxFolderEnvironment(),
       mxEntryEnvironment(),
diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx
index 28916b6..0eace0e 100644
--- a/sd/source/ui/framework/factories/BasicViewFactory.cxx
+++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx
@@ -283,7 +283,7 @@ std::shared_ptr<BasicViewFactory::ViewDescriptor> BasicViewFactory::CreateView (
     FrameView* pFrameView,
     const bool bIsCenterPane)
 {
-    std::shared_ptr<ViewDescriptor> pDescriptor (new ViewDescriptor());
+    std::shared_ptr<ViewDescriptor> pDescriptor (new ViewDescriptor);
 
     pDescriptor->mpViewShell = CreateViewShell(
         rxViewId,
diff --git a/sd/source/ui/presenter/PresenterPreviewCache.cxx b/sd/source/ui/presenter/PresenterPreviewCache.cxx
index da02be8..a55330d 100644
--- a/sd/source/ui/presenter/PresenterPreviewCache.cxx
+++ b/sd/source/ui/presenter/PresenterPreviewCache.cxx
@@ -285,7 +285,7 @@ const SdrPage* PresenterPreviewCache::PresenterCacheContext::GetPage (CacheKey a
 std::shared_ptr<std::vector<CacheKey> >
     PresenterPreviewCache::PresenterCacheContext::GetEntryList (bool bVisible)
 {
-    std::shared_ptr<std::vector<CacheKey> > pKeys (new std::vector<CacheKey>());
+    std::shared_ptr<std::vector<CacheKey> > pKeys (new std::vector<CacheKey>);
 
     if ( ! mxSlides.is())
         return pKeys;
diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx
index 73f7daf..eac3c34 100644
--- a/sd/source/ui/sidebar/LayoutMenu.cxx
+++ b/sd/source/ui/sidebar/LayoutMenu.cxx
@@ -434,7 +434,7 @@ void LayoutMenu::AssignLayoutToSelectedSlides (AutoLayout aLayout)
         {
             // No valid slide sorter available.  Ask the main view shell for
             // its current page.
-            pPageSelection.reset(new ::sd::slidesorter::SlideSorterViewShell::PageSelection());
+            pPageSelection.reset(new ::sd::slidesorter::SlideSorterViewShell::PageSelection);
             pPageSelection->push_back(pMainViewShell->GetActualPage());
         }
 
diff --git a/sd/source/ui/sidebar/MasterPageDescriptor.cxx b/sd/source/ui/sidebar/MasterPageDescriptor.cxx
index ce2f275..1083cf9 100644
--- a/sd/source/ui/sidebar/MasterPageDescriptor.cxx
+++ b/sd/source/ui/sidebar/MasterPageDescriptor.cxx
@@ -145,7 +145,7 @@ const Image& MasterPageDescriptor::GetPreview (MasterPageContainer::PreviewSize
      ::std::unique_ptr<std::vector<MasterPageContainerChangeEvent::EventType> > pResult;
      if (bDataChanged || bIndexChanged || bPreviewChanged)
      {
-         pResult.reset(new std::vector<MasterPageContainerChangeEvent::EventType>());
+         pResult.reset(new std::vector<MasterPageContainerChangeEvent::EventType>);
          if (bDataChanged)
              pResult->push_back(MasterPageContainerChangeEvent::EventType::DATA_CHANGED);
          if (bIndexChanged)
diff --git a/sd/source/ui/sidebar/MasterPageObserver.cxx b/sd/source/ui/sidebar/MasterPageObserver.cxx
index 6443223..5339161 100644
--- a/sd/source/ui/sidebar/MasterPageObserver.cxx
+++ b/sd/source/ui/sidebar/MasterPageObserver.cxx
@@ -140,7 +140,7 @@ void MasterPageObserver::RemoveEventListener (const Link<MasterPageObserverEvent
 }
 
 MasterPageObserver::MasterPageObserver()
-    : mpImpl (new Implementation())
+    : mpImpl (new Implementation)
 {}
 
 MasterPageObserver::~MasterPageObserver()
diff --git a/sd/source/ui/sidebar/MasterPagesSelector.cxx b/sd/source/ui/sidebar/MasterPagesSelector.cxx
index 42bc546..ff733e8 100644
--- a/sd/source/ui/sidebar/MasterPagesSelector.cxx
+++ b/sd/source/ui/sidebar/MasterPagesSelector.cxx
@@ -156,7 +156,7 @@ void MasterPagesSelector::UpdateLocks (const ItemList& rItemList)
 
 void MasterPagesSelector::Fill()
 {
-    ::std::unique_ptr<ItemList> pItemList (new ItemList());
+    ::std::unique_ptr<ItemList> pItemList (new ItemList);
 
     Fill(*pItemList);
 
@@ -364,7 +364,7 @@ void MasterPagesSelector::AssignMasterPageToAllSlides (SdPage* pMasterPage)
     // assigned.
     OUString sFullLayoutName(pMasterPage->GetLayoutName());
     ::sd::slidesorter::SharedPageSelection pPageList (
-        new ::sd::slidesorter::SlideSorterViewShell::PageSelection());
+        new ::sd::slidesorter::SlideSorterViewShell::PageSelection);
     for (sal_uInt16 nPageIndex=0; nPageIndex<nPageCount; nPageIndex++)
     {
         SdPage* pPage = mrDocument.GetSdPage (nPageIndex, PageKind::Standard);
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
index 82de3de..351100a 100644
--- a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
@@ -394,7 +394,7 @@ void BitmapCache::Recycle (const BitmapCache& rCache)
     ::std::sort(aSortedContainer.begin(), aSortedContainer.end(), AccessTimeComparator());
 
     // Return a list with the keys of the sorted entries.
-    ::std::unique_ptr<CacheIndex> pIndex(new CacheIndex());
+    ::std::unique_ptr<CacheIndex> pIndex(new CacheIndex);
     SortableBitmapContainer::iterator iIndexEntry;
     pIndex->reserve(aSortedContainer.size());
     for (iIndexEntry=aSortedContainer.begin(); iIndexEntry!=aSortedContainer.end(); ++iIndexEntry)
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx
index 6d82fa1..f811f70 100644
--- a/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx
@@ -102,7 +102,7 @@ sal_Int32 ResolutionReduction::ResolutionReducedReplacement::GetMemorySize() con
 std::shared_ptr<BitmapReplacement> ResolutionReduction::Compress (
     const Bitmap& rBitmap) const
 {
-    ResolutionReducedReplacement* pResult = new ResolutionReducedReplacement();
+    ResolutionReducedReplacement* pResult = new ResolutionReducedReplacement;
     pResult->maPreview = rBitmap;
     Size aSize (rBitmap.GetSizePixel());
     pResult->maOriginalSize = aSize;
diff --git a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx
index b9d3add..563eb87 100644
--- a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx
@@ -89,13 +89,13 @@ namespace sd { namespace slidesorter { namespace cache {
     if (aCompressionPolicy.has<OUString>())
         aCompressionPolicy >>= sCompressionPolicy;
     if (sCompressionPolicy == sNone)
-        pCompressor.reset(new NoBitmapCompression());
+        pCompressor.reset(new NoBitmapCompression);
     else if (sCompressionPolicy == "Erase")
-        pCompressor.reset(new CompressionByDeletion());
+        pCompressor.reset(new CompressionByDeletion);
     else if (sCompressionPolicy == "ResolutionReduction")
-        pCompressor.reset(new ResolutionReduction());
+        pCompressor.reset(new ResolutionReduction);
     else
-        pCompressor.reset(new PngCompression());
+        pCompressor.reset(new PngCompression);
 
     ::std::unique_ptr<CacheCompactor> pCompactor;
     OUString sCompactionPolicy("Compress");
diff --git a/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx b/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
index c5a7ab4..e20e963 100644
--- a/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
@@ -85,7 +85,7 @@ class RequestQueue::Container
 
 RequestQueue::RequestQueue (const SharedCacheContext& rpCacheContext)
     : maMutex(),
-      mpRequestQueue(new Container()),
+      mpRequestQueue(new Container),
       mpCacheContext(rpCacheContext),
       mnMinimumPriority(0),
       mnMaximumPriority(1)
diff --git a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
index d7766d2..bf35f39 100644
--- a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
@@ -260,7 +260,7 @@ void PageSelector::DisableBroadcasting()
 
 std::shared_ptr<PageSelector::PageSelection> PageSelector::GetPageSelection() const
 {
-    std::shared_ptr<PageSelection> pSelection (new PageSelection());
+    std::shared_ptr<PageSelection> pSelection (new PageSelection);
     pSelection->reserve(GetSelectedPageCount());
 
     int nPageCount = GetPageCount();
diff --git a/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx b/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx
index c88fab8..10ea1f0 100644
--- a/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx
+++ b/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx
@@ -85,7 +85,7 @@ const SdrPage* ViewCacheContext::GetPage (cache::CacheKey aKey)
 
 std::shared_ptr<std::vector<cache::CacheKey> > ViewCacheContext::GetEntryList (bool bVisible)
 {
-    std::shared_ptr<std::vector<cache::CacheKey> > pKeys (new std::vector<cache::CacheKey>());
+    std::shared_ptr<std::vector<cache::CacheKey> > pKeys (new std::vector<cache::CacheKey>);
 
     model::PageEnumeration aPageEnumeration (
         bVisible
diff --git a/sd/source/ui/tools/IconCache.cxx b/sd/source/ui/tools/IconCache.cxx
index ecc15e1..5e7156f 100644
--- a/sd/source/ui/tools/IconCache.cxx
+++ b/sd/source/ui/tools/IconCache.cxx
@@ -96,7 +96,7 @@ Image IconCache::GetIcon (sal_uInt16 nResourceId)
 }
 
 IconCache::IconCache()
-    : mpImpl (new Implementation())
+    : mpImpl (new Implementation)
 {
 }
 
diff --git a/sd/source/ui/tools/PropertySet.cxx b/sd/source/ui/tools/PropertySet.cxx
index 59d25cb..934636a 100644
--- a/sd/source/ui/tools/PropertySet.cxx
+++ b/sd/source/ui/tools/PropertySet.cxx
@@ -27,7 +27,7 @@ namespace sd { namespace tools {
 
 PropertySet::PropertySet()
     : PropertySetInterfaceBase(m_aMutex),
-      mpChangeListeners(new ChangeListenerContainer())
+      mpChangeListeners(new ChangeListenerContainer)
 {
 }
 
diff --git a/sd/source/ui/tools/SdGlobalResourceContainer.cxx b/sd/source/ui/tools/SdGlobalResourceContainer.cxx
index 1465355..eda6e23 100644
--- a/sd/source/ui/tools/SdGlobalResourceContainer.cxx
+++ b/sd/source/ui/tools/SdGlobalResourceContainer.cxx
@@ -146,7 +146,7 @@ void SdGlobalResourceContainer::AddResource (const Reference<XInterface>& rxReso
 }
 
 SdGlobalResourceContainer::SdGlobalResourceContainer()
-    : mpImpl (new SdGlobalResourceContainer::Implementation())
+    : mpImpl (new SdGlobalResourceContainer::Implementation)
 {
 }
 
commit 1c039083b82d9672de8a2cd088d4e3bd18f99fd0
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 12:32:54 2017 +0100

    loplugin:subtlezeroinit: sdext
    
    Change-Id: Idaf62b25bba7328e5f7942619df14d0fff4014e6

diff --git a/sdext/source/presenter/PresenterHelpView.cxx b/sdext/source/presenter/PresenterHelpView.cxx
index 2efcee7..6ed5f744 100644
--- a/sdext/source/presenter/PresenterHelpView.cxx
+++ b/sdext/source/presenter/PresenterHelpView.cxx
@@ -349,7 +349,7 @@ void PresenterHelpView::Paint (const awt::Rectangle& rUpdateBox)
 
 void PresenterHelpView::ReadHelpStrings()
 {
-    mpTextContainer.reset(new TextContainer());
+    mpTextContainer.reset(new TextContainer);
     PresenterConfigurationAccess aConfiguration (
         mxComponentContext,
         "/org.openoffice.Office.PresenterScreen/",
@@ -668,7 +668,7 @@ void LineDescriptorList::FormatText (
 {
     LineDescriptor aLineDescriptor;
 
-    mpLineDescriptors.reset(new vector<LineDescriptor>());
+    mpLineDescriptors.reset(new vector<LineDescriptor>);
 
     vector<OUString>::const_iterator iPart (rTextParts.begin());
     vector<OUString>::const_iterator iEnd (rTextParts.end());
diff --git a/sdext/source/presenter/PresenterPaneContainer.cxx b/sdext/source/presenter/PresenterPaneContainer.cxx
index 05a6a1e..66eef2c 100644
--- a/sdext/source/presenter/PresenterPaneContainer.cxx
+++ b/sdext/source/presenter/PresenterPaneContainer.cxx
@@ -70,7 +70,7 @@ void PresenterPaneContainer::PreparePane (
     if (pPane.get() == nullptr)
     {
         // No entry found for the given pane id.  Create a new one.
-        SharedPaneDescriptor pDescriptor (new PaneDescriptor());
+        SharedPaneDescriptor pDescriptor (new PaneDescriptor);
         pDescriptor->mxPaneId = rxPaneId;
         pDescriptor->msViewURL = rsViewURL;
         pDescriptor->mxPane = nullptr;
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx
index 9889e35..de0a63e 100644
--- a/sdext/source/presenter/PresenterToolBar.cxx
+++ b/sdext/source/presenter/PresenterToolBar.cxx
@@ -609,7 +609,7 @@ void PresenterToolBar::CreateControls (
         "/org.openoffice.Office.PresenterScreen/",
         PresenterConfigurationAccess::READ_ONLY);
 
-    mpCurrentContainerPart.reset(new ElementContainerPart());
+    mpCurrentContainerPart.reset(new ElementContainerPart);
     maElementContainer.clear();
     maElementContainer.push_back(mpCurrentContainerPart);
 
@@ -679,7 +679,7 @@ void PresenterToolBar::ProcessEntry (
         pElement.set(new Label(this));
     else if ( sType == "ChangeOrientation" )
     {
-        mpCurrentContainerPart.reset(new ElementContainerPart());
+        mpCurrentContainerPart.reset(new ElementContainerPart);
         maElementContainer.push_back(mpCurrentContainerPart);
         return;
     }
commit 4d2ba716cbdbb05c193e23f3d46d0f60be1f685d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 20 12:32:36 2017 +0100

    loplugin:subtlezeroinit: sfx2
    
    Change-Id: I1a880bb4df7866b1185ef862ff84693c44a73385

diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx
index be792e5..3be0370 100644
--- a/sfx2/source/appl/appinit.cxx
+++ b/sfx2/source/appl/appinit.cxx
@@ -203,7 +203,7 @@ void SfxApplication::Initialize_Impl()
 #endif
 
     Reference < XDesktop2 > xDesktop = Desktop::create ( ::comphelper::getProcessComponentContext() );
-    xDesktop->addTerminateListener( new SfxTerminateListener_Impl() );

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list