diff options
Diffstat (limited to 'sc/source/core/data/colorscale.cxx')
-rw-r--r-- | sc/source/core/data/colorscale.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx index 25707bfd7a64..5f87b328538a 100644 --- a/sc/source/core/data/colorscale.cxx +++ b/sc/source/core/data/colorscale.cxx @@ -1101,9 +1101,7 @@ double ScIconSetFormat::CalcValue(double nMin, double nMax, ScIconSetFormat::con return (*itr)->GetValue(); } -namespace { - -ScIconSetMap aIconSetMap[] = { +const ScIconSetMap ScIconSetFormat::g_IconSetMap[] = { { "3Arrows", IconSet_3Arrows, 3 }, { "3ArrowsGray", IconSet_3ArrowsGray, 3 }, { "3Flags", IconSet_3Flags, 3 }, @@ -1129,13 +1127,6 @@ ScIconSetMap aIconSetMap[] = { { nullptr, IconSet_3Arrows, 0 } }; -} - -ScIconSetMap* ScIconSetFormat::getIconSetMap() -{ - return aIconSetMap; -} - size_t ScIconSetFormat::size() const { return mpFormatData->m_Entries.size(); @@ -1299,7 +1290,7 @@ BitmapEx& ScIconSetFormat::getBitmap(sc::IconSetBitmapMap & rIconSetBitmapMap, void ScIconSetFormat::EnsureSize() { ScIconSetType eType = mpFormatData->eIconSetType; - for (ScIconSetMap & i : aIconSetMap) + for (const ScIconSetMap & i : g_IconSetMap) { if (i.eType == eType) { |