summaryrefslogtreecommitdiff
path: root/editeng/source/misc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-02 08:31:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-02 10:55:46 +0200
commit591ac7e604fa47304a5ddc1a4f9badbba1199903 (patch)
tree247946d260ea857cc7d3c3e41b4089fdb371a0a6 /editeng/source/misc
parent062e7063a94673d016a91a16a30e86b82c70a03d (diff)
loplugin:checkunusedparams in editeng
Change-Id: I2b770d40ac2339cd2b04a765a6d970675d2ea1c1 Reviewed-on: https://gerrit.libreoffice.org/37133 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/misc')
-rw-r--r--editeng/source/misc/SvXMLAutoCorrectImport.cxx12
-rw-r--r--editeng/source/misc/SvXMLAutoCorrectImport.hxx8
-rw-r--r--editeng/source/misc/svxacorr.cxx8
3 files changed, 12 insertions, 16 deletions
diff --git a/editeng/source/misc/SvXMLAutoCorrectImport.cxx b/editeng/source/misc/SvXMLAutoCorrectImport.cxx
index d9f52b236e90..c5b47020a4fe 100644
--- a/editeng/source/misc/SvXMLAutoCorrectImport.cxx
+++ b/editeng/source/misc/SvXMLAutoCorrectImport.cxx
@@ -43,14 +43,13 @@ SvXMLImportContext *SvXMLAutoCorrectImport::CreateFastContext( sal_Int32 Element
const uno::Reference< xml::sax::XFastAttributeList > & xAttrList )
{
if( Element == SvXMLAutoCorrectToken::BLOCKLIST )
- return new SvXMLWordListContext( *this, Element, xAttrList );
+ return new SvXMLWordListContext( *this, xAttrList );
else
return SvXMLImport::CreateFastContext( Element, xAttrList );
}
SvXMLWordListContext::SvXMLWordListContext(
SvXMLAutoCorrectImport& rImport,
- sal_Int32 /*Element*/,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & /*xAttrList*/ ) :
SvXMLImportContext ( rImport ),
rLocalRef(rImport)
@@ -62,7 +61,7 @@ css::uno::Reference<XFastContextHandler> SAL_CALL SvXMLWordListContext::createFa
sal_Int32 Element, const uno::Reference< xml::sax::XFastAttributeList > & xAttrList )
{
if ( Element == SvXMLAutoCorrectToken::BLOCK )
- return new SvXMLWordContext (rLocalRef, Element, xAttrList);
+ return new SvXMLWordContext (rLocalRef, xAttrList);
else
return new SvXMLImportContext( rLocalRef );
}
@@ -73,7 +72,6 @@ SvXMLWordListContext::~SvXMLWordListContext()
SvXMLWordContext::SvXMLWordContext(
SvXMLAutoCorrectImport& rImport,
- sal_Int32 /*Element*/,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) :
SvXMLImportContext ( rImport ),
rLocalRef(rImport)
@@ -122,14 +120,13 @@ SvXMLImportContext *SvXMLExceptionListImport::CreateFastContext(sal_Int32 Elemen
const uno::Reference< xml::sax::XFastAttributeList > & xAttrList )
{
if( Element == SvXMLAutoCorrectToken::BLOCKLIST )
- return new SvXMLExceptionListContext( *this, Element, xAttrList );
+ return new SvXMLExceptionListContext( *this, xAttrList );
else
return SvXMLImport::CreateFastContext( Element, xAttrList );
}
SvXMLExceptionListContext::SvXMLExceptionListContext(
SvXMLExceptionListImport& rImport,
- sal_Int32 /*Element*/,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & /* xAttrList */ ) :
SvXMLImportContext ( rImport ),
rLocalRef(rImport)
@@ -140,7 +137,7 @@ css::uno::Reference<xml::sax::XFastContextHandler> SAL_CALL SvXMLExceptionListCo
sal_Int32 Element, const uno::Reference< xml::sax::XFastAttributeList > & xAttrList )
{
if ( Element == SvXMLAutoCorrectToken::BLOCK )
- return new SvXMLExceptionContext (rLocalRef, Element, xAttrList);
+ return new SvXMLExceptionContext (rLocalRef, xAttrList);
else
return new SvXMLImportContext( rLocalRef );
}
@@ -151,7 +148,6 @@ SvXMLExceptionListContext::~SvXMLExceptionListContext()
SvXMLExceptionContext::SvXMLExceptionContext(
SvXMLExceptionListImport& rImport,
- sal_Int32 /*Element*/,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) :
SvXMLImportContext ( rImport ),
rLocalRef(rImport)
diff --git a/editeng/source/misc/SvXMLAutoCorrectImport.hxx b/editeng/source/misc/SvXMLAutoCorrectImport.hxx
index 043fe7c048f9..4fe97f37de47 100644
--- a/editeng/source/misc/SvXMLAutoCorrectImport.hxx
+++ b/editeng/source/misc/SvXMLAutoCorrectImport.hxx
@@ -52,7 +52,7 @@ class SvXMLWordListContext : public SvXMLImportContext
private:
SvXMLAutoCorrectImport & rLocalRef;
public:
- SvXMLWordListContext ( SvXMLAutoCorrectImport& rImport, sal_Int32 Element,
+ SvXMLWordListContext ( SvXMLAutoCorrectImport& rImport,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
virtual css::uno::Reference<XFastContextHandler> SAL_CALL createFastChildContext( sal_Int32 Element,
@@ -66,7 +66,7 @@ class SvXMLWordContext : public SvXMLImportContext
private:
SvXMLAutoCorrectImport & rLocalRef;
public:
- SvXMLWordContext ( SvXMLAutoCorrectImport& rImport, sal_Int32 Element,
+ SvXMLWordContext ( SvXMLAutoCorrectImport& rImport,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
virtual ~SvXMLWordContext() override;
@@ -96,7 +96,7 @@ class SvXMLExceptionListContext : public SvXMLImportContext
private:
SvXMLExceptionListImport & rLocalRef;
public:
- SvXMLExceptionListContext ( SvXMLExceptionListImport& rImport, sal_Int32 Element,
+ SvXMLExceptionListContext ( SvXMLExceptionListImport& rImport,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
virtual css::uno::Reference<XFastContextHandler> SAL_CALL createFastChildContext( sal_Int32 Element,
@@ -110,7 +110,7 @@ class SvXMLExceptionContext : public SvXMLImportContext
private:
SvXMLExceptionListImport & rLocalRef;
public:
- SvXMLExceptionContext ( SvXMLExceptionListImport& rImport, sal_Int32 Element,
+ SvXMLExceptionContext ( SvXMLExceptionListImport& rImport,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
virtual ~SvXMLExceptionContext() override;
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 720a23bda34a..ba9da47e63d6 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -629,7 +629,7 @@ bool SvxAutoCorrect::FnChgToEnEmDash(
bool SvxAutoCorrect::FnAddNonBrkSpace(
SvxAutoCorrDoc& rDoc, const OUString& rTxt,
- sal_Int32, sal_Int32 nEndPos,
+ sal_Int32 nEndPos,
LanguageType eLang )
{
bool bRet = false;
@@ -727,7 +727,7 @@ bool SvxAutoCorrect::FnSetINetAttr( SvxAutoCorrDoc& rDoc, const OUString& rTxt,
bool SvxAutoCorrect::FnChgWeightUnderl( SvxAutoCorrDoc& rDoc, const OUString& rTxt,
- sal_Int32 , sal_Int32 nEndPos )
+ sal_Int32 nEndPos )
{
// Condition:
// at the beginning: _, *, / or ~ after Space with the following !Space
@@ -1276,7 +1276,7 @@ void SvxAutoCorrect::DoAutoCorrect( SvxAutoCorrDoc& rDoc, const OUString& rTxt,
if ( IsAutoCorrFlag( AddNonBrkSpace ) )
{
if ( NeedsHardspaceAutocorr( cChar ) &&
- FnAddNonBrkSpace( rDoc, rTxt, 0, nInsPos, rDoc.GetLanguage( nInsPos ) ) )
+ FnAddNonBrkSpace( rDoc, rTxt, nInsPos, rDoc.GetLanguage( nInsPos ) ) )
{
;
}
@@ -1319,7 +1319,7 @@ void SvxAutoCorrect::DoAutoCorrect( SvxAutoCorrDoc& rDoc, const OUString& rTxt,
{
if( IsAutoCorrFlag( ChgWeightUnderl ) )
{
- FnChgWeightUnderl( rDoc, rTxt, 0, nPos+1 );
+ FnChgWeightUnderl( rDoc, rTxt, nPos+1 );
}
break;
}