diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-10 12:28:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-10 19:10:31 +0100 |
commit | 9444c925b254cca32c08c473cc294a5f0e90881a (patch) | |
tree | e98a5fdd4125ab931d9acf7bd17e2ba7732995c5 /i18npool | |
parent | 6610bfdd8c8923e85b30e364c6ea5c7abf218367 (diff) |
new loplugin:stringliteraldefine
look for
#define FOO "foo"
that can be converted into OUStringLiteral.
This is the first pass of this plugin, only doing those #define which
are local to a single compilation unit.
Change-Id: Ic8610e29ec42c36d03db5014a93c244315d5bbea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124962
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/indexentry/indexentrysupplier.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/indexentry/indexentrysupplier.cxx b/i18npool/source/indexentry/indexentrysupplier.cxx index bbaa2cc21c37..0b463315e872 100644 --- a/i18npool/source/indexentry/indexentrysupplier.cxx +++ b/i18npool/source/indexentry/indexentrysupplier.cxx @@ -171,7 +171,7 @@ OUString SAL_CALL IndexEntrySupplier::getIndexFollowPageWord( sal_Bool bMorePage aFollowPageWords[0] : OUString()); } -#define implementationName "com.sun.star.i18n.IndexEntrySupplier" +constexpr OUStringLiteral implementationName = u"com.sun.star.i18n.IndexEntrySupplier"; OUString SAL_CALL IndexEntrySupplier::getImplementationName() |