summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-06-14 11:48:51 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-06-17 12:31:24 +0200
commit2fa7d4a88061a599b0ee29ac94c2515c9fdafc79 (patch)
treecccb47909acbbab5b175aed523ad31c5ac5e7335 /include
parent215454b5f9327093608aba5fc08ef1c27bf019df (diff)
oox, writerfilter, xmloff: use frozen data structures for static data
Change-Id: I4a53fa57f52900104d249c84cde36c9d3b9e1300 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153175 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/oox/drawingml/clrscheme.hxx17
1 files changed, 1 insertions, 16 deletions
diff --git a/include/oox/drawingml/clrscheme.hxx b/include/oox/drawingml/clrscheme.hxx
index 33ff971c7d81..bddd58e0503b 100644
--- a/include/oox/drawingml/clrscheme.hxx
+++ b/include/oox/drawingml/clrscheme.hxx
@@ -25,7 +25,6 @@
#include <memory>
#include <utility>
#include <vector>
-
#include <oox/dllapi.h>
#include <sal/types.h>
#include <rtl/ustring.hxx>
@@ -50,21 +49,7 @@ enum PredefinedClrSchemeId {
Count
};
-static std::map<PredefinedClrSchemeId, OUString> PredefinedClrNames =
-{
- { dk1, "dk1" },
- { lt1, "lt1" },
- { dk2, "dk2" },
- { lt2, "lt2" },
- { accent1, "accent1" },
- { accent2, "accent2" },
- { accent3, "accent3" },
- { accent4, "accent4" },
- { accent5, "accent5" },
- { accent6, "accent6" },
- { hlink, "hlink" },
- { folHlink, "folHlink" }
-};
+OOX_DLLPUBLIC std::u16string_view getPredefinedClrNames(PredefinedClrSchemeId eID);
class ClrMap
{