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

loplugin:useuniqueptr in DbaIndexDialog

Change-Id: Ife795db29256a50a93b668890c85473872d350a9
Reviewed-on: https://gerrit.libreoffice.org/54853Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 2e80fe39
...@@ -215,7 +215,7 @@ namespace dbaui ...@@ -215,7 +215,7 @@ namespace dbaui
setToolBox(m_pActions); setToolBox(m_pActions);
m_pIndexes = new OIndexCollection(); m_pIndexes.reset(new OIndexCollection());
try try
{ {
m_pIndexes->attach(_rxIndexes); m_pIndexes->attach(_rxIndexes);
...@@ -307,7 +307,7 @@ namespace dbaui ...@@ -307,7 +307,7 @@ namespace dbaui
void DbaIndexDialog::dispose() void DbaIndexDialog::dispose()
{ {
setToolBox(nullptr); setToolBox(nullptr);
delete m_pIndexes; m_pIndexes.reset();
m_pActions.clear(); m_pActions.clear();
m_pIndexList.clear(); m_pIndexList.clear();
m_pIndexDetails.clear(); m_pIndexDetails.clear();
......
...@@ -89,7 +89,7 @@ namespace dbaui ...@@ -89,7 +89,7 @@ namespace dbaui
VclPtr<IndexFieldsControl> m_pFields; VclPtr<IndexFieldsControl> m_pFields;
VclPtr<PushButton> m_pClose; VclPtr<PushButton> m_pClose;
OIndexCollection* m_pIndexes; std::unique_ptr<OIndexCollection> m_pIndexes;
SvTreeListEntry* m_pPreviousSelection; SvTreeListEntry* m_pPreviousSelection;
bool m_bEditAgain; bool m_bEditAgain;
......
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