summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-16 09:59:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-16 10:48:31 +0000
commit5fb99f271a571301f8246addae89738016926d6d (patch)
treeb44f864cce56009f48beff28463ae8debe28aca2 /include
parent0f4f5621d194c9221b55bb4a20a251a0bb497d69 (diff)
new loplugin: useuniqueptr: filter
Change-Id: Ie5cee5d7dd067df121397b60a7adc85c62906e54 Reviewed-on: https://gerrit.libreoffice.org/33155 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/filter/msfilter/msdffimp.hxx7
-rw-r--r--include/filter/msfilter/svdfppt.hxx8
2 files changed, 9 insertions, 6 deletions
diff --git a/include/filter/msfilter/msdffimp.hxx b/include/filter/msfilter/msdffimp.hxx
index ae17359f5517..7d56e6de0962 100644
--- a/include/filter/msfilter/msdffimp.hxx
+++ b/include/filter/msfilter/msdffimp.hxx
@@ -72,8 +72,8 @@ namespace com { namespace sun { namespace star {
class MSFILTER_DLLPUBLIC DffPropertyReader : public DffPropSet
{
- const SvxMSDffManager& rManager;
- DffPropSet* pDefaultPropSet;
+ const SvxMSDffManager& rManager;
+ std::unique_ptr<DffPropSet> pDefaultPropSet;
void ApplyCustomShapeTextAttributes( SfxItemSet& rSet ) const;
void CheckAndCorrectExcelTextRotation( SvStream& rIn, SfxItemSet& rSet, DffObjData& rObjData ) const;
@@ -345,7 +345,8 @@ struct DffRecordList
sal_uInt32 nCount;
sal_uInt32 nCurrent;
DffRecordList* pPrev;
- DffRecordList* pNext;
+ std::unique_ptr<DffRecordList>
+ pNext;
DffRecordHeader mHd[ DFF_RECORD_MANAGER_BUF_SIZE ];
diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx
index d0ccd36d806e..c853a16493f8 100644
--- a/include/filter/msfilter/svdfppt.hxx
+++ b/include/filter/msfilter/svdfppt.hxx
@@ -809,7 +809,7 @@ protected:
public:
- PPTExtParaProv* pExtParaProv;
+ std::unique_ptr<PPTExtParaProv> pExtParaProv;
void GetNumberFormat(
SdrPowerPointImport& rMan,
@@ -930,7 +930,8 @@ struct PPTCharPropSet
sal_uInt32 mnOriginalTextPos;
sal_uInt32 mnParagraph;
OUString maString;
- SvxFieldItem* mpFieldItem;
+ std::unique_ptr<SvxFieldItem>
+ mpFieldItem;
sal_uInt16 mnLanguage[ 3 ];
void SetFont( sal_uInt16 nFont );
@@ -966,7 +967,8 @@ struct PPTRuler
sal_uInt16 nDefaultTab;
sal_uInt16 nTextOfs[nMaxPPTLevels];
sal_uInt16 nBulletOfs[nMaxPPTLevels];
- PPTTabEntry* pTab;
+ std::unique_ptr<PPTTabEntry[]>
+ pTab;
sal_uInt16 nTabCount;
PPTRuler();