summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par5.cxx
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/filter/ww8/ww8par5.cxx
parentfeb3b3dbda7af2ba7f2d36dd9174a30912d9cf63 (diff)
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/filter/ww8/ww8par5.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par5.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx
index 24eae0d5f134..cb14e24c7b2e 100644
--- a/sw/source/filter/ww8/ww8par5.cxx
+++ b/sw/source/filter/ww8/ww8par5.cxx
@@ -1285,9 +1285,8 @@ SwFltStackEntry *SwWW8FltRefStack::RefToVar(const SwField* pField,
{
SwGetExpField aField( static_cast<SwGetExpFieldType*>(
pDoc->getIDocumentFieldsAccess().GetSysFieldType(RES_GETEXPFLD)), sName, nsSwGetSetExpType::GSE_STRING, 0);
- delete rEntry.pAttr;
SwFormatField aTmp(aField);
- rEntry.pAttr = aTmp.Clone();
+ rEntry.pAttr.reset( aTmp.Clone() );
pRet = &rEntry;
}
}