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

loplugin:useuniqueptr in PopupMenuFloatingWindow

Change-Id: If903f677db198978dcf455f06198437a26b6a311
Reviewed-on: https://gerrit.libreoffice.org/53227Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 7af3b9d7
......@@ -21,12 +21,13 @@
#define INCLUDED_VCL_POPUPMENUWINDOW_HXX
#include <vcl/floatwin.hxx>
#include <memory>
class VCL_DLLPUBLIC PopupMenuFloatingWindow : public FloatingWindow
{
private:
struct ImplData;
ImplData* mpImplData;
std::unique_ptr<ImplData> mpImplData;
public:
PopupMenuFloatingWindow( vcl::Window* pParent );
virtual ~PopupMenuFloatingWindow() override;
......
......@@ -46,7 +46,7 @@ PopupMenuFloatingWindow::~PopupMenuFloatingWindow()
void PopupMenuFloatingWindow::dispose()
{
delete mpImplData;
mpImplData.reset();
FloatingWindow::dispose();
}
......
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