From 10d172747ba44b405e4bf4cfe7142a23a51bb94e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 19 Nov 2021 08:37:07 +0200 Subject: loplugin:stringliteraldefine in accessibility Change-Id: Ie27c32ea51ebcc9ad0d0d5a1d160d55c23727cd5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125274 Tested-by: Jenkins Reviewed-by: Noel Grandin --- accessibility/inc/strings.hxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'accessibility') diff --git a/accessibility/inc/strings.hxx b/accessibility/inc/strings.hxx index a563cf9b5bf6..baa6f9ec0d1c 100644 --- a/accessibility/inc/strings.hxx +++ b/accessibility/inc/strings.hxx @@ -9,13 +9,13 @@ #pragma once -#define RID_STR_ACC_ACTION_CLICK "press" -#define RID_STR_ACC_ACTION_TOGGLEPOPUP "togglePopup" -#define RID_STR_ACC_ACTION_SELECT "select" -#define RID_STR_ACC_ACTION_INCLINE "incrementLine" -#define RID_STR_ACC_ACTION_DECLINE "decrementLine" -#define RID_STR_ACC_ACTION_INCBLOCK "incrementBlock" -#define RID_STR_ACC_ACTION_DECBLOCK "decrementBlock" +inline constexpr OUStringLiteral RID_STR_ACC_ACTION_CLICK = u"press"; +inline constexpr OUStringLiteral RID_STR_ACC_ACTION_TOGGLEPOPUP = u"togglePopup"; +inline constexpr OUStringLiteral RID_STR_ACC_ACTION_SELECT = u"select"; +inline constexpr OUStringLiteral RID_STR_ACC_ACTION_INCLINE = u"incrementLine"; +inline constexpr OUStringLiteral RID_STR_ACC_ACTION_DECLINE = u"decrementLine"; +inline constexpr OUStringLiteral RID_STR_ACC_ACTION_INCBLOCK = u"incrementBlock"; +inline constexpr OUStringLiteral RID_STR_ACC_ACTION_DECBLOCK = u"decrementBlock"; /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit