From dcea29c283680c8e75e4890f46b1624d0a55846f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 12 Oct 2023 11:17:11 +0200 Subject: Make NC_ constexpr-friendly ...by moving the char8_t -> char reinterpret_cast out of any potential constexpr paths into a new TranslateId::getId. And demonstrate constexpr'ability by making the aCategories var in OApplicationIconControl::Fill (dbaccess/source/ui/app/AppIconControl.cxx) constexpr. (And there might be more such cases that could now be made constexpr.) Change-Id: I0b4e3292faf8f6b901f9b9e934e1aa6bf0f583ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157862 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- shell/inc/spsupp/spsuppStrings.hrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/inc/spsupp/spsuppStrings.hrc b/shell/inc/spsupp/spsuppStrings.hrc index a6ad2933c5fa..28a25d49b11e 100644 --- a/shell/inc/spsupp/spsuppStrings.hrc +++ b/shell/inc/spsupp/spsuppStrings.hrc @@ -10,7 +10,7 @@ #ifndef INCLUDED_SHELL_INC_SPSUPP_STRINGS_HRC #define INCLUDED_SHELL_INC_SPSUPP_STRINGS_HRC -#define NC_(Context, String) TranslateId(Context, reinterpret_cast(u8##String)) +#define NC_(Context, String) TranslateId(Context, u8##String) #define RID_STR_SP_VIEW_OR_EDIT_TITLE NC_("RID_STR_SP_VIEW_OR_EDIT_TITLE", "Open Document") #define RID_STR_SP_VIEW_OR_EDIT_MESSAGE NC_("RID_STR_SP_VIEW_OR_EDIT_MESSAGE", "You are opening document\n\n %DOCNAME\n\nDo you want to open it to view or to edit?") -- cgit