From 9444c925b254cca32c08c473cc294a5f0e90881a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 10 Nov 2021 12:28:26 +0200 Subject: 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 --- l10ntools/source/xmlparse.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'l10ntools/source') diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx index e7c4fad6eb95..bb37352f71dc 100644 --- a/l10ntools/source/xmlparse.cxx +++ b/l10ntools/source/xmlparse.cxx @@ -36,7 +36,7 @@ using namespace osl; -#define XML_LANG "xml-lang" +constexpr OStringLiteral XML_LANG = "xml-lang"; -- cgit