diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-24 13:29:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-24 14:58:15 +0100 |
commit | 0abde637728e53883939f028551c6de5aa215d50 (patch) | |
tree | 0fd49bd65c5def39ef2e8febb751683b0baa1fa9 /fpicker/source | |
parent | fe9ff3b21f92a023da9364d2f45590b5832f70d0 (diff) |
loplugin:stringliteraldefine in formual,fpicker
Change-Id: I663a31ff6b207f43dd6f1c8240a341845b9e20b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125764
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'fpicker/source')
-rw-r--r-- | fpicker/source/office/fpdialogbase.hxx | 2 | ||||
-rw-r--r-- | fpicker/source/win32/VistaFilePickerImpl.hxx | 40 |
2 files changed, 21 insertions, 21 deletions
diff --git a/fpicker/source/office/fpdialogbase.hxx b/fpicker/source/office/fpdialogbase.hxx index ec9dbb0d5f4a..20ab362971f4 100644 --- a/fpicker/source/office/fpdialogbase.hxx +++ b/fpicker/source/office/fpdialogbase.hxx @@ -52,7 +52,7 @@ namespace o3tl { template<> struct typed_flags<PickerFlags> : is_typed_flags<PickerFlags, 0x00ffff> {}; } -#define FILEDIALOG_FILTER_ALL "*.*" +inline constexpr OUStringLiteral FILEDIALOG_FILTER_ALL = u"*.*"; // SvtFileDialog_Base diff --git a/fpicker/source/win32/VistaFilePickerImpl.hxx b/fpicker/source/win32/VistaFilePickerImpl.hxx index 78941886e235..8e757c9c66ac 100644 --- a/fpicker/source/win32/VistaFilePickerImpl.hxx +++ b/fpicker/source/win32/VistaFilePickerImpl.hxx @@ -57,26 +57,26 @@ const ::sal_Int32 FEATURE_VERSION = 1024; const ::sal_Int32 FEATURE_GPGPASSWORD = 2048; const ::sal_Int32 FEATURE_IMAGEANCHOR = 4096; -constexpr OUStringLiteral PROP_PICKER_LISTENER(u"picker_listener" ); // [XFilePickerListenert] -constexpr OUStringLiteral PROP_DIALOG_SHOW_RESULT(u"dialog_show_result" ); // [sal_Bool] true=OK, false=CANCEL -constexpr OUStringLiteral PROP_SELECTED_FILES(u"selected_files" ); // [seq< OUString >] contains all user selected files (can be empty!) -constexpr OUStringLiteral PROP_MULTISELECTION_MODE(u"multiselection_mode"); // [sal_Bool] true=ON, false=OFF -constexpr OUStringLiteral PROP_TITLE(u"title" ); // [OUString] -constexpr OUStringLiteral PROP_FILENAME(u"filename" ); // [OUString] -constexpr OUStringLiteral PROP_DIRECTORY(u"directory" ); // [OUString] -constexpr OUStringLiteral PROP_FEATURES(u"features" ); // [sal_Int32] -constexpr OUStringLiteral PROP_TEMPLATE_DESCR(u"templatedescription"); // [sal_Int32] -constexpr OUStringLiteral PROP_FILTER_TITLE(u"filter_title" ); // [OUString] -constexpr OUStringLiteral PROP_FILTER_VALUE(u"filter_value" ); // [OUString] -constexpr OUStringLiteral PROP_FILTER_GROUP(u"filter-group" ); // [seq< css:beans::StringPair >] contains a group of filters - -constexpr OUStringLiteral PROP_CONTROL_ID(u"control_id" ); // [sal_Int16] -constexpr OUStringLiteral PROP_CONTROL_ACTION(u"control_action" ); // [sal_Int16] -constexpr OUStringLiteral PROP_CONTROL_VALUE(u"control_value" ); // [Any] -constexpr OUStringLiteral PROP_CONTROL_LABEL(u"control_label" ); // [OUString] -constexpr OUStringLiteral PROP_CONTROL_ENABLE(u"control_enable" ); // [sal_Bool] true=ON, false=OFF -constexpr OUStringLiteral PROP_PARENT_WINDOW(u"ParentWindow"); //[css::awt::XWindow] preferred parent window -constexpr OUStringLiteral STRING_SEPARATOR(u"------------------------------------------" ); +inline constexpr OUStringLiteral PROP_PICKER_LISTENER(u"picker_listener" ); // [XFilePickerListenert] +inline constexpr OUStringLiteral PROP_DIALOG_SHOW_RESULT(u"dialog_show_result" ); // [sal_Bool] true=OK, false=CANCEL +inline constexpr OUStringLiteral PROP_SELECTED_FILES(u"selected_files" ); // [seq< OUString >] contains all user selected files (can be empty!) +inline constexpr OUStringLiteral PROP_MULTISELECTION_MODE(u"multiselection_mode"); // [sal_Bool] true=ON, false=OFF +inline constexpr OUStringLiteral PROP_TITLE(u"title" ); // [OUString] +inline constexpr OUStringLiteral PROP_FILENAME(u"filename" ); // [OUString] +inline constexpr OUStringLiteral PROP_DIRECTORY(u"directory" ); // [OUString] +inline constexpr OUStringLiteral PROP_FEATURES(u"features" ); // [sal_Int32] +inline constexpr OUStringLiteral PROP_TEMPLATE_DESCR(u"templatedescription"); // [sal_Int32] +inline constexpr OUStringLiteral PROP_FILTER_TITLE(u"filter_title" ); // [OUString] +inline constexpr OUStringLiteral PROP_FILTER_VALUE(u"filter_value" ); // [OUString] +inline constexpr OUStringLiteral PROP_FILTER_GROUP(u"filter-group" ); // [seq< css:beans::StringPair >] contains a group of filters + +inline constexpr OUStringLiteral PROP_CONTROL_ID(u"control_id" ); // [sal_Int16] +inline constexpr OUStringLiteral PROP_CONTROL_ACTION(u"control_action" ); // [sal_Int16] +inline constexpr OUStringLiteral PROP_CONTROL_VALUE(u"control_value" ); // [Any] +inline constexpr OUStringLiteral PROP_CONTROL_LABEL(u"control_label" ); // [OUString] +inline constexpr OUStringLiteral PROP_CONTROL_ENABLE(u"control_enable" ); // [sal_Bool] true=ON, false=OFF +inline constexpr OUStringLiteral PROP_PARENT_WINDOW(u"ParentWindow"); //[css::awt::XWindow] preferred parent window +inline constexpr OUStringLiteral STRING_SEPARATOR(u"------------------------------------------" ); class TDialogImplBase; |