diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-24 13:25:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-25 13:49:23 +0100 |
commit | 98acc3d926571c13305501806ebc1b8be85e8960 (patch) | |
tree | ec90dc61ba0cce58296dfd771c31ae506c404c37 /desktop/inc | |
parent | b041897b767ea4d6c64f4d22036d23f61d6907f5 (diff) |
loplugin:stringliteraldefine in desktop
Change-Id: I36025f17dc6c47710d6cd299f0349b5be227c21d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125760
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/inc')
-rw-r--r-- | desktop/inc/bitmaps.hlst | 8 | ||||
-rw-r--r-- | desktop/inc/strings.hxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/desktop/inc/bitmaps.hlst b/desktop/inc/bitmaps.hlst index 04c1edd59941..69005c522c50 100644 --- a/desktop/inc/bitmaps.hlst +++ b/desktop/inc/bitmaps.hlst @@ -9,9 +9,9 @@ #pragma once -#define RID_BMP_WARNING "desktop/res/caution_16.png" -#define RID_BMP_LOCKED "desktop/res/lock_16.png" -#define RID_BMP_SHARED "desktop/res/shared_16.png" -#define RID_BMP_EXTENSION "desktop/res/extension_32.png" +inline constexpr OUStringLiteral RID_BMP_WARNING = u"desktop/res/caution_16.png"; +inline constexpr OUStringLiteral RID_BMP_LOCKED = u"desktop/res/lock_16.png"; +inline constexpr OUStringLiteral RID_BMP_SHARED = u"desktop/res/shared_16.png"; +inline constexpr OUStringLiteral RID_BMP_EXTENSION = u"desktop/res/extension_32.png"; /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/desktop/inc/strings.hxx b/desktop/inc/strings.hxx index 54b668b1b803..9254983a9f17 100644 --- a/desktop/inc/strings.hxx +++ b/desktop/inc/strings.hxx @@ -9,6 +9,6 @@ #pragma once -#define RID_APPTITLE "%PRODUCTNAME %PRODUCTVERSION%PRODUCTEXTENSION" +inline constexpr OUStringLiteral RID_APPTITLE = u"%PRODUCTNAME %PRODUCTVERSION%PRODUCTEXTENSION"; /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |