summaryrefslogtreecommitdiffstats
path: root/sw/source/uibase/table
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-18 09:46:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-18 11:19:20 +0000
commit2266b436698f28f3869a025f5aa4a356da04a4f1 (patch)
treea44156984d68252fc5ca4d0088ea5f0a37546e1f /sw/source/uibase/table
parentXPackageTypeInfo::getIcon is useless (diff)
downloadcore-2266b436698f28f3869a025f5aa4a356da04a4f1.tar.gz
core-2266b436698f28f3869a025f5aa4a356da04a4f1.zip
new loplugin: useuniqueptr: sw part 2
Change-Id: Ifa901f75072d8474d8a97ca57c2b5b48d8c6b79d Reviewed-on: https://gerrit.libreoffice.org/33250 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/table')
-rw-r--r--sw/source/uibase/table/swtablerep.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/table/swtablerep.cxx b/sw/source/uibase/table/swtablerep.cxx
index 5324aa866464..177be7c54dbc 100644
--- a/sw/source/uibase/table/swtablerep.cxx
+++ b/sw/source/uibase/table/swtablerep.cxx
@@ -66,7 +66,7 @@ SwTableRep::SwTableRep( const SwTabCols& rTabCol )
bColsChanged(false)
{
nAllCols = nColCount = rTabCol.Count();
- pTColumns = new TColumn[ nColCount + 1 ];
+ pTColumns.reset( new TColumn[ nColCount + 1 ] );
SwTwips nStart = 0,
nEnd;
for( sal_uInt16 i = 0; i < nAllCols; ++i )
@@ -86,7 +86,6 @@ SwTableRep::SwTableRep( const SwTabCols& rTabCol )
SwTableRep::~SwTableRep()
{
- delete[] pTColumns;
}
bool SwTableRep::FillTabCols( SwTabCols& rTabCols ) const