summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-09 14:44:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-10 08:16:31 +0200
commitc302027510adb13a2d34d863e417460375588c4b (patch)
tree753aaebad792666c75602a901e6ae336975e410f /sc/inc
parentb2ea5031386d773f797b3f8cf8035ba5680db813 (diff)
pass SfxItemSet by unique_ptr to ScEditEngineDefaulter
Change-Id: I2bcfb87f687355a66a8a855b2858220cf1fefd39 Reviewed-on: https://gerrit.libreoffice.org/72043 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/editutil.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/editutil.hxx b/sc/inc/editutil.hxx
index a6d96ef73c49..f2b7ae0a01a4 100644
--- a/sc/inc/editutil.hxx
+++ b/sc/inc/editutil.hxx
@@ -134,7 +134,7 @@ public:
void SetDefaults( const SfxItemSet& rDefaults, bool bRememberCopy = true );
/// Becomes the owner of the SfxItemSet
- void SetDefaults( SfxItemSet* pDefaults );
+ void SetDefaults( std::unique_ptr<SfxItemSet> pDefaults );
/// Set the item in the default ItemSet which is created
/// if it doesn't exist yet.
@@ -151,7 +151,7 @@ public:
const SfxItemSet& rDefaults, bool bRememberCopy = true );
/// Current defaults are not applied, new defaults are applied
void SetTextNewDefaults( const EditTextObject& rTextObject,
- SfxItemSet* pDefaults );
+ std::unique_ptr<SfxItemSet> pDefaults );
/// Overwritten method to be able to apply defaults already set
void SetText( const OUString& rText );
@@ -160,7 +160,7 @@ public:
const SfxItemSet& rDefaults );
/// Current defaults are not applied, new defaults are applied
void SetTextNewDefaults( const OUString& rText,
- SfxItemSet* pDefaults );
+ std::unique_ptr<SfxItemSet> pDefaults );
/// Paragraph attributes that are not defaults are copied to
/// character attributes and all paragraph attributes reset