diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-20 12:31:30 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-21 07:34:58 +0100 |
commit | b7302c487004e61afdfb7f5961ce2281b2672581 (patch) | |
tree | 4b7d793f9e30d6c9012632c44261f220172eab38 /svtools | |
parent | e99047fe3bbcc28b651bcb38d0db0800bb8e57d6 (diff) |
loplugin:subtlezeroinit: svtools
Change-Id: I10383c62060022838b1e63383b2fce9de9bbfd0e
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/editbrowsebox.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 6 | ||||
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/vclxaccessibleheaderbaritem.cxx | 2 | ||||
-rw-r--r-- | svtools/source/uno/treecontrolpeer.cxx | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/brwbox/editbrowsebox.cxx b/svtools/source/brwbox/editbrowsebox.cxx index 58121713d41b..61bcb5ea612f 100644 --- a/svtools/source/brwbox/editbrowsebox.cxx +++ b/svtools/source/brwbox/editbrowsebox.cxx @@ -109,7 +109,7 @@ namespace svt void EditBrowseBox::impl_construct() { - m_aImpl.reset(new EditBrowseBoxImpl()); + m_aImpl.reset(new EditBrowseBoxImpl); SetCompoundControl(true); SetGridLineColor( Color( COL_LIGHTGRAY ) ); diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index ddbf61aa3f9e..eae629111bb4 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -117,7 +117,7 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl( bHighlightFramePressed = false; eSelectionMode = SelectionMode::Multiple; pView = pCurView; - pZOrderList = new SvxIconChoiceCtrlEntryList_impl(); + pZOrderList = new SvxIconChoiceCtrlEntryList_impl; ePositionMode = SvxIconChoiceCtrlPositionMode::Free; SetStyle( nWinStyle ); nFlags = IconChoiceFlags::NONE; @@ -660,8 +660,8 @@ void SvxIconChoiceCtrl_Impl::Paint(vcl::RenderContext& rRenderContext, const Rec rRenderContext.Push(PushFlags::CLIPREGION); rRenderContext.SetClipRegion(vcl::Region(rRect)); - SvxIconChoiceCtrlEntryList_impl* pNewZOrderList = new SvxIconChoiceCtrlEntryList_impl(); - std::unique_ptr<SvxIconChoiceCtrlEntryList_impl> pPaintedEntries(new SvxIconChoiceCtrlEntryList_impl()); + SvxIconChoiceCtrlEntryList_impl* pNewZOrderList = new SvxIconChoiceCtrlEntryList_impl; + std::unique_ptr<SvxIconChoiceCtrlEntryList_impl> pPaintedEntries(new SvxIconChoiceCtrlEntryList_impl); size_t nPos = 0; while(nCount) diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 4aeaf506853f..5109ad69ace5 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -482,7 +482,7 @@ void LineListBox::ImplInit() { aTxtSize.Width() = GetTextWidth( " " ); aTxtSize.Height() = GetTextHeight(); - pLineList = new ImpLineList(); + pLineList = new ImpLineList; eUnit = FUNIT_POINT; eSourceUnit = FUNIT_POINT; diff --git a/svtools/source/control/vclxaccessibleheaderbaritem.cxx b/svtools/source/control/vclxaccessibleheaderbaritem.cxx index 0a5ac660fd6d..17a295c87730 100644 --- a/svtools/source/control/vclxaccessibleheaderbaritem.cxx +++ b/svtools/source/control/vclxaccessibleheaderbaritem.cxx @@ -47,7 +47,7 @@ using namespace ::comphelper; VCLXAccessibleHeaderBarItem::VCLXAccessibleHeaderBarItem( HeaderBar* pHeadBar, sal_Int32 _nIndexInParent ) - :OAccessibleExtendedComponentHelper( new VCLExternalSolarLock() ) + :OAccessibleExtendedComponentHelper( new VCLExternalSolarLock ) ,m_pHeadBar( pHeadBar ) ,m_nIndexInParent(_nIndexInParent + 1) diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx index e2a5cf9bbfea..36a0c862f7b5 100644 --- a/svtools/source/uno/treecontrolpeer.cxx +++ b/svtools/source/uno/treecontrolpeer.cxx @@ -159,7 +159,7 @@ void TreeControlPeer::addEntry( UnoTreeListEntry* pEntry ) { if( !mpTreeNodeMap ) { - mpTreeNodeMap = new TreeNodeMap(); + mpTreeNodeMap = new TreeNodeMap; } (*mpTreeNodeMap)[ pEntry->mxNode ] = pEntry; |