summaryrefslogtreecommitdiff
path: root/starmath/inc/dialog.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/inc/dialog.hxx')
-rw-r--r--starmath/inc/dialog.hxx8
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();
}
};