summaryrefslogtreecommitdiff
path: root/cui/source/options/optchart.hxx
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@me.com>2019-03-21 10:41:06 +0100
committerArmin Le Grand <Armin.Le.Grand@me.com>2019-03-21 13:06:43 +0100
commite53f380cbae0741ee4b39483a6422898bb580d28 (patch)
treeac54fdfd05cd92bb53074d4b164ec87eef55d8a3 /cui/source/options/optchart.hxx
parentddf1e93c740901503c92e289c70cb4d54c38dd6e (diff)
Make SvxChartColorTableItem more const
SvxChartColorTableItem has non-const members (aka modifiers) which is bad for SfxItems in general, see comments in change. Adapt SvxChartColorTableItem and it's usage in SvxDefaultColorOptPage as needed. This is also preparation for possible SfxItem refactoring Change-Id: Ia7982b4e7bbfa736229223e55ce63e02143b8cf7 Reviewed-on: https://gerrit.libreoffice.org/69499 Tested-by: Jenkins Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'cui/source/options/optchart.hxx')
-rw-r--r--cui/source/options/optchart.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/cui/source/options/optchart.hxx b/cui/source/options/optchart.hxx
index f99f0798cf79..321fe0ee4256 100644
--- a/cui/source/options/optchart.hxx
+++ b/cui/source/options/optchart.hxx
@@ -42,8 +42,11 @@ private:
VclPtr<PushButton> m_pPBAdd;
VclPtr<PushButton> m_pPBRemove;
- std::unique_ptr<SvxChartOptions> pChartOptions;
- std::unique_ptr<SvxChartColorTableItem> pColorConfig;
+ std::unique_ptr<SvxChartOptions> m_SvxChartOptionsUniquePtr;
+ // no reason to use a cloned SfxItem here (SvxChartColorTableItem)
+ // that just leads to non-const SfxItem and potential trouble
+ std::unique_ptr<SvxChartColorTable> m_SvxChartColorTableUniquePtr;
+
ImpColorList aColorList;
PaletteManager aPaletteManager;