diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-26 11:23:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-26 13:55:07 +0100 |
commit | 547cb22e1a4ad5c39f116eb74b74baf7a729d2e9 (patch) | |
tree | 41b3259aa5e487aa27aac1ba72d4e72762d8c844 /include/svtools/helpids.h | |
parent | 91ce3455cfe1c850dd9780c41e6253cb940af1e9 (diff) |
loplugin:stringliteraldefine in stoc,svtools
Change-Id: Ifd583582fa7bf7366a1f8d482eefd64b30228ca8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125867
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svtools/helpids.h')
-rw-r--r-- | include/svtools/helpids.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/include/svtools/helpids.h b/include/svtools/helpids.h index 62263636429b..eb24d2301f7d 100644 --- a/include/svtools/helpids.h +++ b/include/svtools/helpids.h @@ -19,29 +19,29 @@ #pragma once -#define HID_FILEDLG_LINK_CB "SVT_HID_FILEDLG_LINK_CB" -#define HID_FILEDLG_PREVIEW_CB "SVT_HID_FILEDLG_PREVIEW_CB" -#define HID_FILEDLG_STANDARD "SVT_HID_FILEDLG_STANDARD" +inline constexpr OStringLiteral HID_FILEDLG_LINK_CB = "SVT_HID_FILEDLG_LINK_CB"; +inline constexpr OStringLiteral HID_FILEDLG_PREVIEW_CB = "SVT_HID_FILEDLG_PREVIEW_CB"; +inline constexpr OStringLiteral HID_FILEDLG_STANDARD = "SVT_HID_FILEDLG_STANDARD"; // help ids for the different modi of the file picker dialog -#define HID_FILESAVE_LEVELUP "SVT_HID_FILESAVE_LEVELUP" -#define HID_FILESAVE_CREATEDIRECTORY "SVT_HID_FILESAVE_CREATEDIRECTORY" -#define HID_FILESAVE_FILEVIEW "SVT_HID_FILESAVE_FILEVIEW" -#define HID_FILESAVE_TEMPLATE "SVT_HID_FILESAVE_TEMPLATE" -#define HID_FILESAVE_FILEURL "SVT_HID_FILESAVE_FILEURL" -#define HID_FILESAVE_FILETYPE "SVT_HID_FILESAVE_FILETYPE" -#define HID_FILESAVE_DOSAVE "SVT_HID_FILESAVE_DOSAVE" -#define HID_FILESAVE_AUTOEXTENSION "SVT_HID_FILESAVE_AUTOEXTENSION" -#define HID_FILESAVE_SAVEWITHPASSWORD "SVT_HID_FILESAVE_SAVEWITHPASSWORD" -#define HID_FILESAVE_CUSTOMIZEFILTER "SVT_HID_FILESAVE_CUSTOMIZEFILTER" -#define HID_FILESAVE_SELECTION "SVT_HID_FILESAVE_SELECTION" -#define HID_FILESAVE_DIALOG "SVT_HID_FILESAVE_DIALOG" -#define HID_FILESAVE_DOPLAY "SVT_HID_FILESAVE_DOPLAY" +inline constexpr OStringLiteral HID_FILESAVE_LEVELUP = "SVT_HID_FILESAVE_LEVELUP"; +inline constexpr OStringLiteral HID_FILESAVE_CREATEDIRECTORY = "SVT_HID_FILESAVE_CREATEDIRECTORY"; +inline constexpr OStringLiteral HID_FILESAVE_FILEVIEW = "SVT_HID_FILESAVE_FILEVIEW"; +inline constexpr OStringLiteral HID_FILESAVE_TEMPLATE = "SVT_HID_FILESAVE_TEMPLATE"; +inline constexpr OStringLiteral HID_FILESAVE_FILEURL = "SVT_HID_FILESAVE_FILEURL"; +inline constexpr OStringLiteral HID_FILESAVE_FILETYPE = "SVT_HID_FILESAVE_FILETYPE"; +inline constexpr OStringLiteral HID_FILESAVE_DOSAVE = "SVT_HID_FILESAVE_DOSAVE"; +inline constexpr OStringLiteral HID_FILESAVE_AUTOEXTENSION = "SVT_HID_FILESAVE_AUTOEXTENSION"; +inline constexpr OStringLiteral HID_FILESAVE_SAVEWITHPASSWORD = "SVT_HID_FILESAVE_SAVEWITHPASSWORD"; +inline constexpr OStringLiteral HID_FILESAVE_CUSTOMIZEFILTER = "SVT_HID_FILESAVE_CUSTOMIZEFILTER"; +inline constexpr OStringLiteral HID_FILESAVE_SELECTION = "SVT_HID_FILESAVE_SELECTION"; +inline constexpr OStringLiteral HID_FILESAVE_DIALOG = "SVT_HID_FILESAVE_DIALOG"; +inline constexpr OStringLiteral HID_FILESAVE_DOPLAY = "SVT_HID_FILESAVE_DOPLAY"; -#define HID_FILEOPEN_LEVELUP "SVT_HID_FILEOPEN_LEVELUP" -#define HID_FILEOPEN_READONLY "SVT_HID_FILEOPEN_READONLY" -#define HID_FILEOPEN_VERSION "SVT_HID_FILEOPEN_VERSION" -#define HID_FILEOPEN_IMAGE_TEMPLATE "SVT_HID_FILEOPEN_IMAGE_TEMPLATE" -#define HID_FILEOPEN_IMAGE_ANCHOR "SVT_HID_FILEOPEN_IMAGE_ANCHOR" +inline constexpr OStringLiteral HID_FILEOPEN_LEVELUP = "SVT_HID_FILEOPEN_LEVELUP"; +inline constexpr OStringLiteral HID_FILEOPEN_READONLY = "SVT_HID_FILEOPEN_READONLY"; +inline constexpr OStringLiteral HID_FILEOPEN_VERSION = "SVT_HID_FILEOPEN_VERSION"; +inline constexpr OStringLiteral HID_FILEOPEN_IMAGE_TEMPLATE = "SVT_HID_FILEOPEN_IMAGE_TEMPLATE"; +inline constexpr OStringLiteral HID_FILEOPEN_IMAGE_ANCHOR = "SVT_HID_FILEOPEN_IMAGE_ANCHOR"; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |