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

loplugin:useuniqueptr in ImplListBoxWindow

Change-Id: I9966baf9fd490fec4fb808f7e70470eb690dbc9e
Reviewed-on: https://gerrit.libreoffice.org/53350Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 27bc42d7
......@@ -165,7 +165,7 @@ public:
class ImplListBoxWindow : public Control, public vcl::ISearchableStringList
{
private:
ImplEntryList* mpEntryList; ///< EntryList
std::unique_ptr<ImplEntryList> mpEntryList; ///< EntryList
tools::Rectangle maFocusRect;
Size maUserItemSize;
......@@ -255,7 +255,7 @@ public:
virtual ~ImplListBoxWindow() override;
virtual void dispose() override;
ImplEntryList* GetEntryList() const { return mpEntryList; }
ImplEntryList* GetEntryList() const { return mpEntryList.get(); }
sal_Int32 InsertEntry( sal_Int32 nPos, ImplEntryType* pNewEntry );
void RemoveEntry( sal_Int32 nPos );
......
......@@ -461,7 +461,7 @@ ImplListBoxWindow::ImplListBoxWindow( vcl::Window* pParent, WinBits nWinStyle )
Control( pParent, 0 ),
maQuickSelectionEngine( *this )
{
mpEntryList = new ImplEntryList( this );
mpEntryList.reset(new ImplEntryList( this ));
mnTop = 0;
mnLeft = 0;
......@@ -508,7 +508,7 @@ ImplListBoxWindow::~ImplListBoxWindow()
void ImplListBoxWindow::dispose()
{
delete mpEntryList;
mpEntryList.reset();
Control::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