summaryrefslogtreecommitdiff
path: root/hwpfilter/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-04 07:41:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-04 15:11:42 +0200
commitc851882f0a31e75108d3e492faa4aaceb5da1838 (patch)
tree235e6c484ccf1d13304cbb9dec9e0c14a2ab8048 /hwpfilter/source
parent716f3e6ff560893febc95f55fc39bc46151afd7f (diff)
Upcoming loplugin:elidestringvar: hwpfilter
Change-Id: I7c9a8fe33d06236f66c201267650fcbea29dc43c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95478 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'hwpfilter/source')
-rw-r--r--hwpfilter/source/hwpreader.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/hwpfilter/source/hwpreader.hxx b/hwpfilter/source/hwpreader.hxx
index 0f14e1cfde36..6d8d1b86fbaa 100644
--- a/hwpfilter/source/hwpreader.hxx
+++ b/hwpfilter/source/hwpreader.hxx
@@ -199,9 +199,8 @@ Sequence< OUString > HwpImportFilter::getSupportedServiceNames_Static() throw ()
HwpImportFilter::HwpImportFilter(const Reference< XMultiServiceFactory >& rFact)
{
- OUString sService( WRITER_IMPORTER_NAME );
try {
- Reference< XDocumentHandler > xHandler( rFact->createInstance( sService ), UNO_QUERY );
+ Reference< XDocumentHandler > xHandler( rFact->createInstance( WRITER_IMPORTER_NAME ), UNO_QUERY );
HwpReader *p = new HwpReader;
p->setDocumentHandler( xHandler );