diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-07 15:58:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-10 08:27:34 +0200 |
commit | 19b34f615c04555f27978e2823ba735a9c9f882e (patch) | |
tree | faa096bdff1167537a4537cf0d931af8f023290f /include/filter/msfilter/msdffimp.hxx | |
parent | ccb6513baf6eae9af40eecd05a2991bdd3ce3bbf (diff) |
loplugin:useuniqueptr in filter
Change-Id: Ie64ba38d607733b457d66ed1b9af84303c676e13
Reviewed-on: https://gerrit.libreoffice.org/39695
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/filter/msfilter/msdffimp.hxx')
-rw-r--r-- | include/filter/msfilter/msdffimp.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/filter/msfilter/msdffimp.hxx b/include/filter/msfilter/msdffimp.hxx index d87dec093fe8..3dff33e6269c 100644 --- a/include/filter/msfilter/msdffimp.hxx +++ b/include/filter/msfilter/msdffimp.hxx @@ -211,9 +211,11 @@ struct MSFILTER_DLLPUBLIC SvxMSDffImportRec SdrObject* pObj; tools::Polygon* pWrapPolygon; - char* pClientAnchorBuffer; + std::unique_ptr<char[]> + pClientAnchorBuffer; sal_uInt32 nClientAnchorLen; - char* pClientDataBuffer; + std::unique_ptr<char[]> + pClientDataBuffer; sal_uInt32 nClientDataLen; sal_uInt32 nXAlign; sal_uInt32 *pXRelTo; @@ -483,14 +485,14 @@ protected: // the following methods need to be overridden for Excel imports static bool ProcessClientAnchor( SvStream& rStData, sal_uInt32 nDatLen, - char*& rpBuff, + std::unique_ptr<char[]>& rpBuff, sal_uInt32& rBuffLen ); virtual void ProcessClientAnchor2( SvStream& rStData, DffRecordHeader& rHd, void* pData, DffObjData& ); static bool ProcessClientData( SvStream& rStData, sal_uInt32 nDatLen, - char*& rpBuff, + std::unique_ptr<char[]>& rpBuff, sal_uInt32& rBuffLen ); virtual SdrObject* ProcessObj( SvStream& rSt, DffObjData& rData, |