diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-29 13:26:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-29 14:52:19 +0100 |
commit | ac52c6b58d30e0124b27a5b928261db5a4592c28 (patch) | |
tree | 1357c5fe67fba48ca4fbb541d3ddde7ad7fa6190 /hwpfilter | |
parent | c00b2c43c8f10755b1e7bfb32766e384d8964b3d (diff) |
loplugin:stringliteraldefine in hwpfilter
Change-Id: Ibdd479533a8dc17df4fa2116299d81468f641a20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126044
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hwpreader.cxx | 2 | ||||
-rw-r--r-- | hwpfilter/source/hwpreader.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx index 54684bb51eec..32d9b08c6d25 100644 --- a/hwpfilter/source/hwpreader.cxx +++ b/hwpfilter/source/hwpreader.cxx @@ -4869,7 +4869,7 @@ HwpImportFilter::HwpImportFilter(const Reference< XComponentContext >& rxContext } catch( Exception & ) { - printf(" fail to instantiate %s\n", WRITER_IMPORTER_NAME ); + printf(" fail to instantiate %s\n", OUString(WRITER_IMPORTER_NAME).toUtf8().getStr() ); exit( 1 ); } } diff --git a/hwpfilter/source/hwpreader.hxx b/hwpfilter/source/hwpreader.hxx index 7642d9324981..91021a326186 100644 --- a/hwpfilter/source/hwpreader.hxx +++ b/hwpfilter/source/hwpreader.hxx @@ -65,7 +65,7 @@ using namespace ::com::sun::star::xml::sax; #include "drawdef.h" #include "attributes.hxx" -#define WRITER_IMPORTER_NAME "com.sun.star.comp.Writer.XMLImporter" +inline constexpr OUStringLiteral WRITER_IMPORTER_NAME = u"com.sun.star.comp.Writer.XMLImporter"; struct HwpReaderPrivate; /** |