summaryrefslogtreecommitdiff
path: root/include/editeng/svxrtf.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-29 11:00:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 07:52:11 +0100
commitcf4ee7b872a67fa91bbbaa18a8effde71d6523c9 (patch)
tree311fb095d32731b7ee6e494e1355e536a7f0cd13 /include/editeng/svxrtf.hxx
parentd69d9cdc40d7a2f3d80688ab519fcf4c932b8f7b (diff)
loplugin:useuniqueptr in SvxRTFParser
Change-Id: I0d01e8612ff4e8eb1eb53a817c8fb586b61aa5bb Reviewed-on: https://gerrit.libreoffice.org/49150 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng/svxrtf.hxx')
-rw-r--r--include/editeng/svxrtf.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/editeng/svxrtf.hxx b/include/editeng/svxrtf.hxx
index 73e885553a43..8273e64b6f12 100644
--- a/include/editeng/svxrtf.hxx
+++ b/include/editeng/svxrtf.hxx
@@ -187,11 +187,11 @@ class EDITENG_DLLPUBLIC SvxRTFParser : public SvRTFParser
RTFPardAttrMapIds aPardMap;
std::vector<sal_uInt16> aWhichMap;
- EditPosition* pInsPos;
+ std::unique_ptr<EditPosition> pInsPos;
SfxItemPool* pAttrPool;
- Color* pDfltColor;
- vcl::Font* pDfltFont;
- SfxItemSet *pRTFDefaults;
+ std::unique_ptr<Color> pDfltColor;
+ std::unique_ptr<vcl::Font> pDfltFont;
+ std::unique_ptr<SfxItemSet> pRTFDefaults;
int nDfltFont;
@@ -355,7 +355,7 @@ public:
inline const Color& SvxRTFParser::GetColor( size_t nId ) const
{
- Color* pColor = pDfltColor;
+ Color* pColor = pDfltColor.get();
if( nId < aColorTbl.size() )
pColor = aColorTbl[ nId ];
return *pColor;