diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-21 14:23:23 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-16 06:30:09 +0000 |
commit | 127f70d66ac32b7a4ec818adaf1bdccb71865ee5 (patch) | |
tree | a020d2002c2eea81484297421f0fbe3ee84c2db0 /svx/source/form/fmdmod.cxx | |
parent | ce95e39f8e952159844e9dc04a1df402bb103634 (diff) |
new loplugin to check for static OUStrings
that are better declared as OUStringLiteral
Change-Id: Ifb5d9a12bb31a68641940bec16971a8181a46567
Reviewed-on: https://gerrit.libreoffice.org/27377
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/form/fmdmod.cxx')
-rw-r--r-- | svx/source/form/fmdmod.cxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/svx/source/form/fmdmod.cxx b/svx/source/form/fmdmod.cxx index a11a99eaaa1d..3b980e493c45 100644 --- a/svx/source/form/fmdmod.cxx +++ b/svx/source/form/fmdmod.cxx @@ -62,27 +62,27 @@ SAL_WNOUNREACHABLE_CODE_POP ::com::sun::star::uno::Sequence< OUString > SAL_CALL SvxFmMSFactory::getAvailableServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) { - static const OUString aSvxComponentServiceNameList[] = + static const OUStringLiteral aSvxComponentServiceNameList[] = { - OUString(FM_SUN_COMPONENT_TEXTFIELD), - OUString(FM_SUN_COMPONENT_FORM), - OUString(FM_SUN_COMPONENT_LISTBOX), - OUString(FM_SUN_COMPONENT_COMBOBOX), - OUString(FM_SUN_COMPONENT_RADIOBUTTON), - OUString(FM_SUN_COMPONENT_GROUPBOX), - OUString(FM_SUN_COMPONENT_FIXEDTEXT), - OUString(FM_SUN_COMPONENT_COMMANDBUTTON), - OUString(FM_SUN_COMPONENT_CHECKBOX), - OUString(FM_SUN_COMPONENT_GRIDCONTROL), - OUString(FM_SUN_COMPONENT_IMAGEBUTTON), - OUString(FM_SUN_COMPONENT_FILECONTROL), - OUString(FM_SUN_COMPONENT_TIMEFIELD), - OUString(FM_SUN_COMPONENT_DATEFIELD), - OUString(FM_SUN_COMPONENT_NUMERICFIELD), - OUString(FM_SUN_COMPONENT_CURRENCYFIELD), - OUString(FM_SUN_COMPONENT_PATTERNFIELD), - OUString(FM_SUN_COMPONENT_HIDDENCONTROL), - OUString(FM_SUN_COMPONENT_IMAGECONTROL) + OUStringLiteral(FM_SUN_COMPONENT_TEXTFIELD), + OUStringLiteral(FM_SUN_COMPONENT_FORM), + OUStringLiteral(FM_SUN_COMPONENT_LISTBOX), + OUStringLiteral(FM_SUN_COMPONENT_COMBOBOX), + OUStringLiteral(FM_SUN_COMPONENT_RADIOBUTTON), + OUStringLiteral(FM_SUN_COMPONENT_GROUPBOX), + OUStringLiteral(FM_SUN_COMPONENT_FIXEDTEXT), + OUStringLiteral(FM_SUN_COMPONENT_COMMANDBUTTON), + OUStringLiteral(FM_SUN_COMPONENT_CHECKBOX), + OUStringLiteral(FM_SUN_COMPONENT_GRIDCONTROL), + OUStringLiteral(FM_SUN_COMPONENT_IMAGEBUTTON), + OUStringLiteral(FM_SUN_COMPONENT_FILECONTROL), + OUStringLiteral(FM_SUN_COMPONENT_TIMEFIELD), + OUStringLiteral(FM_SUN_COMPONENT_DATEFIELD), + OUStringLiteral(FM_SUN_COMPONENT_NUMERICFIELD), + OUStringLiteral(FM_SUN_COMPONENT_CURRENCYFIELD), + OUStringLiteral(FM_SUN_COMPONENT_PATTERNFIELD), + OUStringLiteral(FM_SUN_COMPONENT_HIDDENCONTROL), + OUStringLiteral(FM_SUN_COMPONENT_IMAGECONTROL) }; static const sal_uInt16 nSvxComponentServiceNameListCount = SAL_N_ELEMENTS(aSvxComponentServiceNameList); |