diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-07 14:33:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-08 19:28:08 +0200 |
commit | 9212fadc4d421148e1a3f8b668d82a93f65cc2c3 (patch) | |
tree | a1954e2ebd6b5b1dc8104e442793fcdd831b8c8a /dbaccess/source/ui/dlg/TextConnectionHelper.cxx | |
parent | d34098cdb98966e537d9c500e34c8719c21094a8 (diff) |
loplugin:useuniqueptr in OGenericAdministrationPage
Change-Id: I3028aa7d40b5fea763a93b54bf5f4c5bc4294822
Reviewed-on: https://gerrit.libreoffice.org/60193
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/dlg/TextConnectionHelper.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/TextConnectionHelper.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx index a26ae5b69b2f..d5520af0aaf8 100644 --- a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx +++ b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx @@ -181,25 +181,25 @@ namespace dbaui m_aGetExtensionHandler.Call(this); } - void OTextConnectionHelper::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) + void OTextConnectionHelper::fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) { - _rControlList.push_back(new OSaveValueWrapper<ComboBox>(m_pFieldSeparator)); - _rControlList.push_back(new OSaveValueWrapper<ComboBox>(m_pTextSeparator)); - _rControlList.push_back(new OSaveValueWrapper<ComboBox>(m_pDecimalSeparator)); - _rControlList.push_back(new OSaveValueWrapper<ComboBox>(m_pThousandsSeparator)); - _rControlList.push_back(new OSaveValueWrapper<CheckBox>(m_pRowHeader)); - _rControlList.push_back(new OSaveValueWrapper<ListBox>(m_pCharSet)); + _rControlList.emplace_back(new OSaveValueWrapper<ComboBox>(m_pFieldSeparator)); + _rControlList.emplace_back(new OSaveValueWrapper<ComboBox>(m_pTextSeparator)); + _rControlList.emplace_back(new OSaveValueWrapper<ComboBox>(m_pDecimalSeparator)); + _rControlList.emplace_back(new OSaveValueWrapper<ComboBox>(m_pThousandsSeparator)); + _rControlList.emplace_back(new OSaveValueWrapper<CheckBox>(m_pRowHeader)); + _rControlList.emplace_back(new OSaveValueWrapper<ListBox>(m_pCharSet)); } - void OTextConnectionHelper::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) + void OTextConnectionHelper::fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) { - _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFieldSeparatorLabel)); - _rControlList.push_back(new ODisableWrapper<FixedText>(m_pTextSeparatorLabel)); - _rControlList.push_back(new ODisableWrapper<FixedText>(m_pDecimalSeparatorLabel)); - _rControlList.push_back(new ODisableWrapper<FixedText>(m_pThousandsSeparatorLabel)); - _rControlList.push_back(new ODisableWrapper<FixedText>(m_pCharSetHeader)); - _rControlList.push_back(new ODisableWrapper<FixedText>(m_pCharSetLabel)); - _rControlList.push_back(new ODisableWrapper<ListBox>(m_pCharSet)); + _rControlList.emplace_back(new ODisableWrapper<FixedText>(m_pFieldSeparatorLabel)); + _rControlList.emplace_back(new ODisableWrapper<FixedText>(m_pTextSeparatorLabel)); + _rControlList.emplace_back(new ODisableWrapper<FixedText>(m_pDecimalSeparatorLabel)); + _rControlList.emplace_back(new ODisableWrapper<FixedText>(m_pThousandsSeparatorLabel)); + _rControlList.emplace_back(new ODisableWrapper<FixedText>(m_pCharSetHeader)); + _rControlList.emplace_back(new ODisableWrapper<FixedText>(m_pCharSetLabel)); + _rControlList.emplace_back(new ODisableWrapper<ListBox>(m_pCharSet)); } void OTextConnectionHelper::implInitControls(const SfxItemSet& _rSet, bool _bValid) |