diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-11 09:48:18 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-12-05 08:17:08 -0500 |
commit | 0f455f2309d018906e147269f839f52aa22eaf6a (patch) | |
tree | 3008bfd18f588e8d058adaa1c6c473be14b99a49 /svx/source | |
parent | 07ff6eaaba5a7ecd0e9e04507190df779ac5cfe4 (diff) |
new loplugin: useuniqueptr: vcl
Reviewed-on: https://gerrit.libreoffice.org/32948
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit e8b49f09074fe184374bee5062715357427ae044)
Change-Id: Idcbc8655108ff57c06c33bbcabd652387bf3c4ec
(cherry picked from commit fb68934e81bebdf1580d0fad25fad8912eaf3450)
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/dialog/ctredlin.cxx | 2 | ||||
-rw-r--r-- | svx/source/form/datanavi.cxx | 2 | ||||
-rw-r--r-- | svx/source/sidebar/PanelLayout.cxx | 2 | ||||
-rw-r--r-- | svx/source/sidebar/paragraph/ParaSpacingWindow.cxx | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx index 105aaebf3d05..e78ff5bed26c 100644 --- a/svx/source/dialog/ctredlin.cxx +++ b/svx/source/dialog/ctredlin.cxx @@ -1057,7 +1057,7 @@ IMPL_LINK( SvxTPFilter, RefHandle, Button*, pRef, void ) SvxAcceptChgCtr::SvxAcceptChgCtr(vcl::Window* pParent, VclBuilderContainer* pTopLevel) : TabControl(pParent, WB_TABSTOP | WB_DIALOGCONTROL) { - m_pUIBuilder = new VclBuilder(this, getUIRootDir(), "svx/ui/redlinecontrol.ui", "RedlineControl"); + m_pUIBuilder.reset(new VclBuilder(this, getUIRootDir(), "svx/ui/redlinecontrol.ui", "RedlineControl")); pTPFilter = VclPtr<SvxTPFilter>::Create(this); pTPView = VclPtr<SvxTPView>::Create(this, pTopLevel); diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index 7b921cad373b..aac20cd25ab0 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -1366,7 +1366,7 @@ namespace svxform , m_aItemImageList(SVX_RES(RID_SVXIL_DATANAVI)) , m_xDataListener(new DataListener(this)) { - m_pUIBuilder = new VclBuilder(this, getUIRootDir(), "svx/ui/datanavigator.ui", "DataNavigator"); + m_pUIBuilder.reset(new VclBuilder(this, getUIRootDir(), "svx/ui/datanavigator.ui", "DataNavigator")); get(m_pModelsBox, "modelslist"); get(m_pModelBtn, "modelsbutton"); get(m_pTabCtrl, "tabcontrol"); diff --git a/svx/source/sidebar/PanelLayout.cxx b/svx/source/sidebar/PanelLayout.cxx index 2f492fe78270..5d5eba25498b 100644 --- a/svx/source/sidebar/PanelLayout.cxx +++ b/svx/source/sidebar/PanelLayout.cxx @@ -24,7 +24,7 @@ PanelLayout::PanelLayout(vcl::Window* pParent, const OString& rID, const OUStrin , m_bInClose(false) { SetStyle(GetStyle() | WB_DIALOGCONTROL); - m_pUIBuilder = new VclBuilder(this, getUIRootDir(), rUIXMLDescription, rID, rFrame); + m_pUIBuilder.reset(new VclBuilder(this, getUIRootDir(), rUIXMLDescription, rID, rFrame)); m_aPanelLayoutIdle.SetPriority(SchedulerPriority::RESIZE); m_aPanelLayoutIdle.SetIdleHdl( LINK( this, PanelLayout, ImplHandlePanelLayoutTimerHdl ) ); if (GetSettings().GetStyleSettings().GetAutoMnemonic()) diff --git a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx index 41a7e45bab1c..8c7d364324b4 100644 --- a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx +++ b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx @@ -38,10 +38,10 @@ ParaULSpacingWindow::ParaULSpacingWindow(vcl::Window* pParent, css::uno::Referen : VclVBox(pParent) , m_eUnit(MapUnit::MapTwip) { - m_pUIBuilder = new VclBuilder(this, getUIRootDir(), + m_pUIBuilder.reset(new VclBuilder(this, getUIRootDir(), "svx/ui/paraulspacing.ui", "ParaULSpacingWindow", - xFrame); + xFrame)); get(m_pAboveSpacing, "aboveparaspacing"); get(m_pBelowSpacing, "belowparaspacing"); @@ -107,10 +107,10 @@ ParaLRSpacingWindow::ParaLRSpacingWindow(vcl::Window* pParent, css::uno::Referen : VclVBox(pParent) , m_eUnit(MapUnit::MapTwip) { - m_pUIBuilder = new VclBuilder(this, getUIRootDir(), + m_pUIBuilder.reset(new VclBuilder(this, getUIRootDir(), "svx/ui/paralrspacing.ui", "ParaLRSpacingWindow", - xFrame); + xFrame)); get(m_pBeforeSpacing, "beforetextindent"); get(m_pAfterSpacing, "aftertextindent"); |