diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-23 11:36:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-23 12:42:19 +0200 |
commit | 7bed47db29783677aa69aa2a54ab1f6ca8e810f6 (patch) | |
tree | 698729ab62d8fb827541d2309d17bb2b4e7a3d6b /dbaccess/source/ui/querydesign/JoinTableView.cxx | |
parent | ff93e4977cb1e23f355d248a77e8d0e56bb0f4b9 (diff) |
loplugin:makeshared in dbaccess
Change-Id: If4208532d2905410a07b846afee46fba2fe1e549
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92748
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/querydesign/JoinTableView.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/JoinTableView.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx index 193a1ba51ac5..02562bf49a5d 100644 --- a/dbaccess/source/ui/querydesign/JoinTableView.cxx +++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx @@ -306,11 +306,11 @@ TTableWindowData::value_type OJoinTableView::createTableWindowData(const OUStrin return pData; } -OTableWindowData* OJoinTableView::CreateImpl(const OUString& _rComposedName +std::shared_ptr<OTableWindowData> OJoinTableView::CreateImpl(const OUString& _rComposedName ,const OUString& _sTableName ,const OUString& _rWinName) { - return new OTableWindowData( nullptr,_rComposedName,_sTableName, _rWinName ); + return std::make_shared<OTableWindowData>( nullptr,_rComposedName,_sTableName, _rWinName ); } void OJoinTableView::AddTabWin(const OUString& _rComposedName, const OUString& rWinName, bool /*bNewTable*/) |