diff options
author | Jeff Huang <jeff@mail.ossii.com.tw> | 2021-11-05 10:49:09 +0800 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2021-11-25 15:57:44 +0100 |
commit | 7b0e0409c3f24dfe37d9c43ffa439b56ea719868 (patch) | |
tree | 549e2dea23efd239384cdb9e8d1de30dd3f631f7 /cui/source | |
parent | 4f9f1ac33366817df61c488a9f36b09c592ee939 (diff) |
tdf#145539 const OUString -> constexpr OUStringLiteral
Convert string literals defined as const char[] in header files
to constexpr OUStringLiteral
Change-Id: I69fdc34cfb663ff87fabc8efc72d6563aa23465b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124724
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/inc/cfg.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx index 730c6f0ad234..361e801d723c 100644 --- a/cui/source/inc/cfg.hxx +++ b/cui/source/inc/cfg.hxx @@ -48,7 +48,7 @@ inline constexpr OUStringLiteral ITEM_DESCRIPTOR_LABEL = u"Label"; inline constexpr OUStringLiteral ITEM_DESCRIPTOR_TYPE = u"Type"; inline constexpr OUStringLiteral ITEM_DESCRIPTOR_STYLE = u"Style"; inline constexpr OUStringLiteral ITEM_DESCRIPTOR_ISVISIBLE = u"IsVisible"; -const char ITEM_DESCRIPTOR_RESOURCEURL[] = "ResourceURL"; +inline constexpr OUStringLiteral ITEM_DESCRIPTOR_RESOURCEURL = u"ResourceURL"; inline constexpr OUStringLiteral ITEM_DESCRIPTOR_UINAME = u"UIName"; inline constexpr OUStringLiteral ITEM_MENUBAR_URL = u"private:resource/menubar/menubar"; @@ -56,7 +56,7 @@ inline constexpr OUStringLiteral ITEM_TOOLBAR_URL = u"private:resource/toolbar/" inline constexpr OUStringLiteral CUSTOM_TOOLBAR_STR = u"custom_toolbar_"; -const char aMenuSeparatorStr[] = " | "; +inline constexpr OUStringLiteral aMenuSeparatorStr = u" | "; class SvxConfigEntry; class SvxConfigPage; |