diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-15 11:57:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-16 08:24:49 +0100 |
commit | a47baea83f761937f5b8b5ed0ee142d3e04386d4 (patch) | |
tree | d73cc352deef9a6f41c1a41026f38d61b20f59e8 /starmath/inc | |
parent | b4b2d7dd3eb210eb77c8f53e604a5d308282ee99 (diff) |
loplugin:useuniqueptr in SmCategoryDesc
Change-Id: I4a6be3c84fb7c64b5f72499e5393e44f02514201
Reviewed-on: https://gerrit.libreoffice.org/51334
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/dialog.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index 7de61cf8b7dd..6b71b2791a6c 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -179,8 +179,8 @@ public: class SmCategoryDesc { OUString Name; - OUString *Strings[4]; - Image *Graphics[4]; /* regular bitmaps */ + OUString Strings[4]; + std::unique_ptr<Image> Graphics[4]; /* regular bitmaps */ sal_uInt16 Minimum[4]; sal_uInt16 Maximum[4]; sal_uInt16 Value[4]; @@ -190,7 +190,7 @@ public: ~SmCategoryDesc(); const OUString& GetName() const { return Name; } - const OUString* GetString(sal_uInt16 Index) const { return Strings[Index]; } + const OUString& GetString(sal_uInt16 Index) const { return Strings[Index]; } sal_uInt16 GetMinimum(sal_uInt16 Index) { return Minimum[Index]; } sal_uInt16 GetMaximum(sal_uInt16 Index) { return Maximum[Index]; } sal_uInt16 GetValue(sal_uInt16 Index) const { return Value[Index]; } @@ -198,7 +198,7 @@ public: const Image * GetGraphic(sal_uInt16 Index) const { - return Graphics[Index]; + return Graphics[Index].get(); } }; |