summaryrefslogtreecommitdiff
path: root/sw/source/core/fields/authfld.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-27 10:45:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-28 07:40:21 +0100
commitd337731d4f7017d51fab08f0edbac1effc9baf90 (patch)
treedc9396aecf2d93e5d7892584475a170c1ba17cbb /sw/source/core/fields/authfld.cxx
parent2115482443be58ca21b38ac06c69627fdd04ecc1 (diff)
return by unique_ptr from SwFieldType::Copy
Change-Id: I145b55c9cd62a5853c0dd26cc9b805b9f3a0e436 Reviewed-on: https://gerrit.libreoffice.org/69854 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/fields/authfld.cxx')
-rw-r--r--sw/source/core/fields/authfld.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx
index cb93ce2a9f43..fa21aa81643d 100644
--- a/sw/source/core/fields/authfld.cxx
+++ b/sw/source/core/fields/authfld.cxx
@@ -79,9 +79,9 @@ SwAuthorityFieldType::~SwAuthorityFieldType()
{
}
-SwFieldType* SwAuthorityFieldType::Copy() const
+std::unique_ptr<SwFieldType> SwAuthorityFieldType::Copy() const
{
- return new SwAuthorityFieldType(m_pDoc);
+ return std::make_unique<SwAuthorityFieldType>(m_pDoc);
}
void SwAuthorityFieldType::RemoveField(const SwAuthEntry* nHandle)