From 7bed47db29783677aa69aa2a54ab1f6ca8e810f6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Apr 2020 11:36:41 +0200 Subject: loplugin:makeshared in dbaccess Change-Id: If4208532d2905410a07b846afee46fba2fe1e549 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92748 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/ui/querydesign/JoinTableView.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dbaccess/source/ui/querydesign/JoinTableView.cxx') 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 OJoinTableView::CreateImpl(const OUString& _rComposedName ,const OUString& _sTableName ,const OUString& _rWinName) { - return new OTableWindowData( nullptr,_rComposedName,_sTableName, _rWinName ); + return std::make_shared( nullptr,_rComposedName,_sTableName, _rWinName ); } void OJoinTableView::AddTabWin(const OUString& _rComposedName, const OUString& rWinName, bool /*bNewTable*/) -- cgit