loplugin:useuniqueptr in VCLXWindow
Change-Id: Iefec174c7dc3dbd52bdb9f6d7ebe6c8c42c031e9
This commit is contained in:
@@ -44,6 +44,7 @@
|
|||||||
#include <tools/link.hxx>
|
#include <tools/link.hxx>
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
@@ -76,7 +77,7 @@ typedef cppu::ImplInheritanceHelper< VCLXDevice,
|
|||||||
class TOOLKIT_DLLPUBLIC VCLXWindow : public VCLXWindow_Base
|
class TOOLKIT_DLLPUBLIC VCLXWindow : public VCLXWindow_Base
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
VCLXWindowImpl* mpImpl;
|
std::unique_ptr<VCLXWindowImpl> mpImpl;
|
||||||
|
|
||||||
UnoPropertyArrayHelper *GetPropHelper();
|
UnoPropertyArrayHelper *GetPropHelper();
|
||||||
|
|
||||||
|
@@ -328,12 +328,12 @@ void ImplInitWindowEvent( css::awt::WindowEvent& rEvent, vcl::Window const * pWi
|
|||||||
VCLXWindow::VCLXWindow( bool _bWithDefaultProps )
|
VCLXWindow::VCLXWindow( bool _bWithDefaultProps )
|
||||||
:mpImpl( nullptr )
|
:mpImpl( nullptr )
|
||||||
{
|
{
|
||||||
mpImpl = new VCLXWindowImpl( *this, _bWithDefaultProps );
|
mpImpl.reset( new VCLXWindowImpl( *this, _bWithDefaultProps ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
VCLXWindow::~VCLXWindow()
|
VCLXWindow::~VCLXWindow()
|
||||||
{
|
{
|
||||||
delete mpImpl;
|
mpImpl.reset();
|
||||||
|
|
||||||
if ( GetWindow() )
|
if ( GetWindow() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user