diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-05 12:18:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-08 11:58:00 +0200 |
commit | 98dd271c7228a4cf03a995d98eba8a1d64ad92f8 (patch) | |
tree | 74160d291b08bfd5b2a75acfb61247565b4842b9 /sc/source/ui/dbgui/dbnamdlg.cxx | |
parent | 0317541c6b5486647bacaa5255e4babfc5ce9c23 (diff) |
use more std::unique_ptr in ScDBCollection::NamedDBs
Change-Id: I5825208435fd179e9515e731a24a6e5bf1c94431
Reviewed-on: https://gerrit.libreoffice.org/61436
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/dbgui/dbnamdlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/dbnamdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx index 935ec57cd5e1..7eda996e841d 100644 --- a/sc/source/ui/dbgui/dbnamdlg.cxx +++ b/sc/source/ui/dbgui/dbnamdlg.cxx @@ -455,16 +455,16 @@ IMPL_LINK_NOARG(ScDbNameDlg, AddBtnHdl, Button*, void) { // insert new area - ScDBData* pNewEntry = new ScDBData( aNewName, aStart.Tab(), + std::unique_ptr<ScDBData> pNewEntry(new ScDBData( aNewName, aStart.Tab(), aStart.Col(), aStart.Row(), aEnd.Col(), aEnd.Row(), true, m_pBtnHeader->IsChecked(), - m_pBtnTotals->IsChecked() ); + m_pBtnTotals->IsChecked() )); pNewEntry->SetDoSize( m_pBtnDoSize->IsChecked() ); pNewEntry->SetKeepFmt( m_pBtnKeepFmt->IsChecked() ); pNewEntry->SetStripData( m_pBtnStripData->IsChecked() ); - bool ins = aLocalDbCol.getNamedDBs().insert(pNewEntry); + bool ins = aLocalDbCol.getNamedDBs().insert(std::move(pNewEntry)); assert(ins); (void)ins; } |