summaryrefslogtreecommitdiff
path: root/framework/inc/xml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-02 13:04:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-02 17:51:30 +0200
commit091c67183248ecef9e23e2f8726e816d81dfb4ff (patch)
tree29ffb866c63df988a1c9c6dd2854dbe55560d4b3 /framework/inc/xml
parent694f63d27fdd915239ec5f1d4cccd9b85bfff787 (diff)
replace createFromAscii with OUString literals in framework
Change-Id: I5209ab1b869492234946f8471a30c70121824198 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167010 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/inc/xml')
-rw-r--r--framework/inc/xml/toolboxconfigurationdefines.hxx17
1 files changed, 5 insertions, 12 deletions
diff --git a/framework/inc/xml/toolboxconfigurationdefines.hxx b/framework/inc/xml/toolboxconfigurationdefines.hxx
index 39f77f3f4c1d..f156c84209fb 100644
--- a/framework/inc/xml/toolboxconfigurationdefines.hxx
+++ b/framework/inc/xml/toolboxconfigurationdefines.hxx
@@ -27,18 +27,11 @@ inline constexpr OUString XMLNS_TOOLBAR_PREFIX = u"toolbar:"_ustr;
#define XMLNS_FILTER_SEPARATOR "^"
-#define ELEMENT_TOOLBAR "toolbar"
-#define ELEMENT_TOOLBARITEM "toolbaritem"
-#define ELEMENT_TOOLBARSPACE "toolbarspace"
-#define ELEMENT_TOOLBARBREAK "toolbarbreak"
-#define ELEMENT_TOOLBARSEPARATOR "toolbarseparator"
-
-#define ATTRIBUTE_UINAME "uiname"
-
-#define ATTRIBUTE_TEXT "text"
-#define ATTRIBUTE_URL "href"
-#define ATTRIBUTE_VISIBLE "visible"
-#define ATTRIBUTE_ITEMSTYLE "style"
+inline constexpr OUString ATTRIBUTE_UINAME = u"uiname"_ustr;
+inline constexpr OUString ATTRIBUTE_TEXT = u"text"_ustr;
+inline constexpr OUString ATTRIBUTE_URL = u"href"_ustr;
+inline constexpr OUString ATTRIBUTE_VISIBLE = u"visible"_ustr;
+inline constexpr OUString ATTRIBUTE_ITEMSTYLE = u"style"_ustr;
inline constexpr OUString ELEMENT_NS_TOOLBAR = u"toolbar:toolbar"_ustr;
inline constexpr OUString ELEMENT_NS_TOOLBARITEM = u"toolbar:toolbaritem"_ustr;