From 7b0e0409c3f24dfe37d9c43ffa439b56ea719868 Mon Sep 17 00:00:00 2001 From: Jeff Huang Date: Fri, 5 Nov 2021 10:49:09 +0800 Subject: 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 --- vbahelper/source/vbahelper/vbacommandbarhelper.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vbahelper') diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.hxx b/vbahelper/source/vbahelper/vbacommandbarhelper.hxx index 8eda1dbafc3e..c177385cc285 100644 --- a/vbahelper/source/vbahelper/vbacommandbarhelper.hxx +++ b/vbahelper/source/vbahelper/vbacommandbarhelper.hxx @@ -40,8 +40,8 @@ inline constexpr OUStringLiteral ITEM_DESCRIPTOR_ENABLED = u"Enabled"; inline constexpr OUStringLiteral ITEM_MENUBAR_URL = u"private:resource/menubar/menubar"; constexpr char16_t ITEM_TOOLBAR_URL[] = u"private:resource/toolbar/"; -const char CUSTOM_TOOLBAR_STR[] = "custom_toolbar_"; -const char CUSTOM_MENU_STR[] = "vnd.openoffice.org:CustomMenu"; +inline constexpr OUStringLiteral CUSTOM_TOOLBAR_STR = u"custom_toolbar_"; +inline constexpr OUStringLiteral CUSTOM_MENU_STR = u"vnd.openoffice.org:CustomMenu"; class VbaCommandBarHelper; typedef std::shared_ptr< VbaCommandBarHelper > VbaCommandBarHelperRef; -- cgit