summaryrefslogtreecommitdiff
path: root/include/editeng/svxrtf.hxx
diff options
context:
space:
mode:
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;