summaryrefslogtreecommitdiff
path: root/sw/inc/expfld.hxx
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/inc/expfld.hxx
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/inc/expfld.hxx')
-rw-r--r--sw/inc/expfld.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/expfld.hxx b/sw/inc/expfld.hxx
index 1f1c53c72d94..23d00b3d9fbb 100644
--- a/sw/inc/expfld.hxx
+++ b/sw/inc/expfld.hxx
@@ -71,7 +71,7 @@ class SwGetExpFieldType : public SwValueFieldType
{
public:
SwGetExpFieldType(SwDoc* pDoc);
- virtual SwFieldType* Copy() const override;
+ virtual std::unique_ptr<SwFieldType> Copy() const override;
/** Overlay, because get-field cannot be changed and therefore
does not need to be updated. Update at changing of set-values! */
@@ -155,7 +155,7 @@ protected:
public:
SwSetExpFieldType( SwDoc* pDoc, const OUString& rName,
sal_uInt16 nType = nsSwGetSetExpType::GSE_EXPR );
- virtual SwFieldType* Copy() const override;
+ virtual std::unique_ptr<SwFieldType> Copy() const override;
virtual OUString GetName() const override;
inline void SetType(sal_uInt16 nTyp);
@@ -274,7 +274,7 @@ class SwInputFieldType : public SwFieldType
public:
SwInputFieldType( SwDoc* pDoc );
- virtual SwFieldType* Copy() const override;
+ virtual std::unique_ptr<SwFieldType> Copy() const override;
SwDoc* GetDoc() const { return mpDoc; }
};
@@ -368,7 +368,7 @@ class SwTableFieldType : public SwValueFieldType
{
public:
SwTableFieldType(SwDoc* pDocPtr);
- virtual SwFieldType* Copy() const override;
+ virtual std::unique_ptr<SwFieldType> Copy() const override;
};
class SwTableField : public SwValueField, public SwTableFormula