From 3f72218069f6f78a3ba21c40f00240d78cbe65c7 Mon Sep 17 00:00:00 2001 From: Noel Grandin <noel@peralex.com> Date: Wed, 3 Jun 2015 12:02:36 +0200 Subject: Apply new VclPtr clang plugin to catch potential problems. Omit the plugin, and sw's FrameControlsManager for now. Change-Id: Ifb98a2e6e03a9d099efc1668305b96bd9142ca5f Reviewed-on: https://gerrit.libreoffice.org/16117 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com> --- basic/source/runtime/inputbox.cxx | 2 +- basic/source/runtime/iosys.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'basic') diff --git a/basic/source/runtime/inputbox.cxx b/basic/source/runtime/inputbox.cxx index 0e942fc5555c..e993bed63cb8 100644 --- a/basic/source/runtime/inputbox.cxx +++ b/basic/source/runtime/inputbox.cxx @@ -56,7 +56,7 @@ SvRTLInputBox::SvRTLInputBox( vcl::Window* pParent, const OUString& rPrompt, long nXTwips, long nYTwips ) : ModalDialog( pParent,WB_3DLOOK | WB_MOVEABLE | WB_CLOSEABLE ), aEdit( VclPtr<Edit>::Create(this, WB_LEFT | WB_BORDER) ), - aOk( new OKButton(this) ), aCancel( new CancelButton(this) ), aPromptText( VclPtr<FixedText>::Create(this, WB_WORDBREAK) ) + aOk( VclPtr<OKButton>::Create(this) ), aCancel( VclPtr<CancelButton>::Create(this) ), aPromptText( VclPtr<FixedText>::Create(this, WB_WORDBREAK) ) { SetMapMode( MapMode( MAP_APPFONT ) ); Size aDlgSizeApp( 280, 80 ); diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index cdc4248724e6..09c97638c44d 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -82,7 +82,7 @@ public: SbiInputDialog::SbiInputDialog( vcl::Window* pParent, const OUString& rPrompt ) :ModalDialog( pParent, WB_3DLOOK | WB_MOVEABLE | WB_CLOSEABLE ), aInput( VclPtr<Edit>::Create(this, WB_3DLOOK | WB_LEFT | WB_BORDER) ), - aOk( new OKButton(this) ), aCancel( VclPtr<CancelButton>::Create(this) ) + aOk( VclPtr<OKButton>::Create(this) ), aCancel( VclPtr<CancelButton>::Create(this) ) { SetText( rPrompt ); aOk->SetClickHdl( LINK( this, SbiInputDialog, Ok ) ); -- cgit