summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/relationdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-23 16:37:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 07:18:56 +0100
commita41f9b3ae91101414a7ba2f651f735bc71f69f81 (patch)
tree7827e21495a370fd68bc4d884a4fd3b89295239c /dbaccess/source/ui/relationdesign
parente5cfe9c050fbd601b64dc13fe6760e762a35a4d4 (diff)
loplugin:makeshared in cui..desktop
Change-Id: I45b7381f665a749b86302be07fa095a30842428f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87277 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/relationdesign')
-rw-r--r--dbaccess/source/ui/relationdesign/RelationTableView.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/relationdesign/RelationTableView.cxx b/dbaccess/source/ui/relationdesign/RelationTableView.cxx
index 968b63a547eb..cbc4f9b009e2 100644
--- a/dbaccess/source/ui/relationdesign/RelationTableView.cxx
+++ b/dbaccess/source/ui/relationdesign/RelationTableView.cxx
@@ -180,8 +180,8 @@ void ORelationTableView::AddConnection(const OJoinExchangeData& jxdSource, const
}
}
// insert table connection into view
- TTableConnectionData::value_type pTabConnData(new ORelationTableConnectionData(pSourceWin->GetData(),
- pDestWin->GetData()));
+ TTableConnectionData::value_type pTabConnData = std::make_shared<ORelationTableConnectionData>(pSourceWin->GetData(),
+ pDestWin->GetData());
// the names of the affected fields
OUString sSourceFieldName = jxdSource.pListBox->GetEntryText(jxdSource.pEntry);
@@ -246,7 +246,7 @@ void ORelationTableView::ConnDoubleClicked(VclPtr<OTableConnection>& rConnection
void ORelationTableView::AddNewRelation()
{
- TTableConnectionData::value_type pNewConnData( new ORelationTableConnectionData() );
+ TTableConnectionData::value_type pNewConnData = std::make_shared<ORelationTableConnectionData>();
ORelationDialog aRelDlg(this, pNewConnData, true);
bool bSuccess = (aRelDlg.run() == RET_OK);