summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-01 14:56:36 +0200
committerNoel Grandin <noel@peralex.com>2016-03-02 07:57:37 +0200
commita8aafaee134eb82e033175a820096d72205ce5e5 (patch)
tree128e45716ab147c691d85d1cc61dd919c90048fe /sdext/source/pdfimport
parentbd5ceabb533a3af7e4140e195de885bf23f650bf (diff)
loplugin:unuseddefaultparam in sdext
Change-Id: I6919b8ca82e81153f4f8b663f00c9ede5ffe6305
Diffstat (limited to 'sdext/source/pdfimport')
-rw-r--r--sdext/source/pdfimport/tree/pdfiprocessor.cxx5
-rw-r--r--sdext/source/pdfimport/tree/pdfiprocessor.hxx3
2 files changed, 3 insertions, 5 deletions
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx
index c91bef382ac9..3f8fcc73dfdb 100644
--- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx
+++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx
@@ -601,10 +601,9 @@ void PDFIProcessor::emit( XmlEmitter& rEmitter,
endIndicator();
}
-void PDFIProcessor::startIndicator( const OUString& rText, sal_Int32 nElements )
+void PDFIProcessor::startIndicator( const OUString& rText )
{
- if( nElements == -1 )
- nElements = m_nPages;
+ sal_Int32 nElements = m_nPages;
if( m_xStatusIndicator.is() )
{
sal_Int32 nUnicodes = rText.getLength();
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.hxx b/sdext/source/pdfimport/tree/pdfiprocessor.hxx
index 126143b09671..21197bfa8233 100644
--- a/sdext/source/pdfimport/tree/pdfiprocessor.hxx
+++ b/sdext/source/pdfimport/tree/pdfiprocessor.hxx
@@ -162,8 +162,7 @@ namespace pdfi
const css::uno::Sequence<
css::beans::PropertyValue>& xMask) override;
- /// nElements == -1 means fill in number of pages
- void startIndicator( const OUString& rText, sal_Int32 nElements = -1 );
+ void startIndicator( const OUString& rText );
void endIndicator();
void setupImage(ImageId nImage);