diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-25 14:51:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-26 09:47:52 +0100 |
commit | c4499bef94845176b53bbe9678d242638d86040c (patch) | |
tree | b9ba5de308ce48a22f0505ade1385e6cd419f896 /include | |
parent | 2132da5066143d7828984bc1aa42d10223bc5824 (diff) |
loplugin:stringliteraldefine in framework
Change-Id: I8bdda62c232b8f20aa6bb1e5e7ad303d6ffa47ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125809
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/framework/addonsoptions.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/framework/addonsoptions.hxx b/include/framework/addonsoptions.hxx index 07684311bbe9..0e97f7a24a86 100644 --- a/include/framework/addonsoptions.hxx +++ b/include/framework/addonsoptions.hxx @@ -33,14 +33,14 @@ namespace osl { class Mutex; } @descr The method GetAddonsMenu() returns a list of property values. Use follow defines to separate values by names. *//*-*************************************************************************************************************/ -#define ADDONSMENUITEM_STRING_URL "URL" -#define ADDONSMENUITEM_STRING_TITLE "Title" -#define ADDONSMENUITEM_STRING_TARGET "Target" -#define ADDONSMENUITEM_STRING_IMAGEIDENTIFIER "ImageIdentifier" -#define ADDONSMENUITEM_STRING_CONTEXT "Context" -#define ADDONSMENUITEM_STRING_SUBMENU "Submenu" - -#define ADDONSPOPUPMENU_URL_PREFIX_STR "private:menu/Addon" +inline constexpr OUStringLiteral ADDONSMENUITEM_STRING_URL = u"URL"; +inline constexpr OUStringLiteral ADDONSMENUITEM_STRING_TITLE = u"Title"; +inline constexpr OUStringLiteral ADDONSMENUITEM_STRING_TARGET = u"Target"; +inline constexpr OUStringLiteral ADDONSMENUITEM_STRING_IMAGEIDENTIFIER = u"ImageIdentifier"; +inline constexpr OUStringLiteral ADDONSMENUITEM_STRING_CONTEXT = u"Context"; +inline constexpr OUStringLiteral ADDONSMENUITEM_STRING_SUBMENU = u"Submenu"; + +inline constexpr OUStringLiteral ADDONSPOPUPMENU_URL_PREFIX_STR = u"private:menu/Addon"; namespace framework { |