diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-11 09:48:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-13 06:49:23 +0000 |
commit | e8b49f09074fe184374bee5062715357427ae044 (patch) | |
tree | b9cf1f5e3d7ab8b98345a512b6ddb0da42fe2919 /svx/source | |
parent | 5e0e27e758e6f7fa325f36e6e51540e10bab0fdc (diff) |
new loplugin: useuniqueptr: vcl
Change-Id: Idcbc8655108ff57c06c33bbcabd652387bf3c4ec
Reviewed-on: https://gerrit.libreoffice.org/32948
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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 26dd99617aeb..80fcd2a52aec 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 56b114c76cdb..b7298ef5622d 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -1354,7 +1354,7 @@ namespace svxform , m_bIsNotifyDisabled(false) , 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 74451ec9378e..fd8e07538c93 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 9ebea6a25c98..8225df98ebf2 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"); |