summaryrefslogtreecommitdiff
path: root/sd/source/ui/inc/unokywds.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-04-12 09:21:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-15 15:53:25 +0200
commit6c934d0feb6a391fda0939e8db5d12aafeb93cc6 (patch)
tree6d256b92dc7913cfd195b199440e90226c772413 /sd/source/ui/inc/unokywds.hxx
parent6c9a86a6392662f1115d3fe6b793a451101429b7 (diff)
store ptr to the original entries in SfxItemPropertyMap
instead of copying them to a new data structure that is practically identical. Helps startup time since we build a ton of these when loading documents. And use o3tl::sorted_vector as a dense map data structure to reduce allocations and improve cache friendliness, since this is a build-once thing. Change-Id: I950be03b1a21c0c81c40f2677d4215f5e8e256cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114015 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/inc/unokywds.hxx')
-rw-r--r--sd/source/ui/inc/unokywds.hxx29
1 files changed, 15 insertions, 14 deletions
diff --git a/sd/source/ui/inc/unokywds.hxx b/sd/source/ui/inc/unokywds.hxx
index 41384cf08371..13a4cd4dd258 100644
--- a/sd/source/ui/inc/unokywds.hxx
+++ b/sd/source/ui/inc/unokywds.hxx
@@ -44,20 +44,21 @@ inline constexpr OUStringLiteral sUNO_Service_ImageMapPolygonObject
= u"com.sun.star.image.ImageMapPolygonObject";
// properties
-inline const char16_t sUNO_Prop_ForbiddenCharacters[] = u"ForbiddenCharacters";
-inline const char16_t sUNO_Prop_MapUnit[] = u"MapUnit";
-inline const char16_t sUNO_Prop_VisibleArea[] = u"VisibleArea";
-inline const char16_t sUNO_Prop_TabStop[] = u"TabStop";
-inline const char16_t sUNO_Prop_CharLocale[] = u"CharLocale";
-inline const char16_t sUNO_Prop_AutomContFocus[] = u"AutomaticControlFocus";
-inline const char16_t sUNO_Prop_ApplyFrmDsgnMode[] = u"ApplyFormDesignMode";
-inline const char16_t sUNO_Prop_IsBackgroundVisible[] = u"IsBackgroundVisible";
-inline const char16_t sUNO_Prop_IsBackgroundObjectsVisible[] = u"IsBackgroundObjectsVisible";
-inline const char16_t sUNO_Prop_UserDefinedAttributes[] = u"UserDefinedAttributes";
-inline const char16_t sUNO_Prop_BookmarkURL[] = u"BookmarkURL";
-inline const char16_t sUNO_Prop_RuntimeUID[] = u"RuntimeUID";
-inline const char16_t sUNO_Prop_HasValidSignatures[] = u"HasValidSignatures";
-inline const char16_t sUNO_Prop_InteropGrabBag[] = u"InteropGrabBag";
+inline constexpr OUStringLiteral sUNO_Prop_ForbiddenCharacters = u"ForbiddenCharacters";
+inline constexpr OUStringLiteral sUNO_Prop_MapUnit = u"MapUnit";
+inline constexpr OUStringLiteral sUNO_Prop_VisibleArea = u"VisibleArea";
+inline constexpr OUStringLiteral sUNO_Prop_TabStop = u"TabStop";
+inline constexpr OUStringLiteral sUNO_Prop_CharLocale = u"CharLocale";
+inline constexpr OUStringLiteral sUNO_Prop_AutomContFocus = u"AutomaticControlFocus";
+inline constexpr OUStringLiteral sUNO_Prop_ApplyFrmDsgnMode = u"ApplyFormDesignMode";
+inline constexpr OUStringLiteral sUNO_Prop_IsBackgroundVisible = u"IsBackgroundVisible";
+inline constexpr OUStringLiteral sUNO_Prop_IsBackgroundObjectsVisible
+ = u"IsBackgroundObjectsVisible";
+inline constexpr OUStringLiteral sUNO_Prop_UserDefinedAttributes = u"UserDefinedAttributes";
+inline constexpr OUStringLiteral sUNO_Prop_BookmarkURL = u"BookmarkURL";
+inline constexpr OUStringLiteral sUNO_Prop_RuntimeUID = u"RuntimeUID";
+inline constexpr OUStringLiteral sUNO_Prop_HasValidSignatures = u"HasValidSignatures";
+inline constexpr OUStringLiteral sUNO_Prop_InteropGrabBag = u"InteropGrabBag";
// view settings
inline constexpr OUStringLiteral sUNO_View_ViewId = u"ViewId";