Kaydet (Commit) d72a2899 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in VCLXWindow

Change-Id: Iefec174c7dc3dbd52bdb9f6d7ebe6c8c42c031e9
üst 474b4bbf
......@@ -44,6 +44,7 @@
#include <tools/link.hxx>
#include <stdarg.h>
#include <memory>
#include <vector>
#include <functional>
......@@ -76,7 +77,7 @@ typedef cppu::ImplInheritanceHelper< VCLXDevice,
class TOOLKIT_DLLPUBLIC VCLXWindow : public VCLXWindow_Base
{
private:
VCLXWindowImpl* mpImpl;
std::unique_ptr<VCLXWindowImpl> mpImpl;
UnoPropertyArrayHelper *GetPropHelper();
......
......@@ -328,12 +328,12 @@ void ImplInitWindowEvent( css::awt::WindowEvent& rEvent, vcl::Window const * pWi
VCLXWindow::VCLXWindow( bool _bWithDefaultProps )
:mpImpl( nullptr )
{
mpImpl = new VCLXWindowImpl( *this, _bWithDefaultProps );
mpImpl.reset( new VCLXWindowImpl( *this, _bWithDefaultProps ) );
}
VCLXWindow::~VCLXWindow()
{
delete mpImpl;
mpImpl.reset();
if ( GetWindow() )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment