diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-12 15:11:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-13 11:32:56 +0100 |
commit | b586bfcff288151082f7d247b392c5640ae5c951 (patch) | |
tree | cf87d67397c5c53469ca350f12b0b40e1660efdf /include/svx/xbtmpit.hxx | |
parent | e71f44f4dc847c75b874d514888d0675ccb00496 (diff) |
use unique_ptr in checkForUniqueItem
fixing a memory leak in chart2
Change-Id: Idddb6a46b1bde5c1a11148c03bbdaac20ac78e13
Reviewed-on: https://gerrit.libreoffice.org/65031
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/xbtmpit.hxx')
-rw-r--r-- | include/svx/xbtmpit.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svx/xbtmpit.hxx b/include/svx/xbtmpit.hxx index 218985c077d6..ae5047bd8ae7 100644 --- a/include/svx/xbtmpit.hxx +++ b/include/svx/xbtmpit.hxx @@ -59,7 +59,7 @@ public: bool isPattern() const; static bool CompareValueFunc( const NameOrIndex* p1, const NameOrIndex* p2 ); - XFillBitmapItem* checkForUniqueItem( SdrModel* pModel ) const; + std::unique_ptr<XFillBitmapItem> checkForUniqueItem( SdrModel* pModel ) const; virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const override; }; |