summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/tabledesign/TEditControl.cxx
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/tabledesign/TEditControl.cxx
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/tabledesign/TEditControl.cxx')
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx
index 6ee67535d414..4408f36a6427 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx
@@ -724,7 +724,7 @@ void OTableEditorCtrl::CopyRows()
OSL_ENSURE(pRow,"OTableEditorCtrl::CopyRows: Row is NULL!");
if ( pRow && pRow->GetActFieldDescr() )
{
- pClipboardRow.reset(new OTableRow( *pRow ));
+ pClipboardRow = std::make_shared<OTableRow>( *pRow );
vClipboardList.push_back( pClipboardRow);
}
}
@@ -782,7 +782,7 @@ void OTableEditorCtrl::InsertRows( long nRow )
vInsertedUndoRedoRows.reserve(nSize);
for(sal_Int32 i=0;i < nSize;++i)
{
- pRow.reset(new OTableRow());
+ pRow = std::make_shared<OTableRow>();
ReadOTableRow( *aStreamRef, *pRow );
pRow->SetReadOnly( false );
sal_Int32 nType = pRow->GetActFieldDescr()->GetType();