hwpfilter/source/hwpreader.cxx | 2 +- hwpfilter/source/hwpreader.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit ac52c6b58d30e0124b27a5b928261db5a4592c28 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Mon Nov 29 13:26:31 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Nov 29 14:52:19 2021 +0100 loplugin:stringliteraldefine in hwpfilter Change-Id: Ibdd479533a8dc17df4fa2116299d81468f641a20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126044 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> 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; /**