diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-16 10:17:37 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-16 11:35:38 +0000 |
commit | 78f0d15893c56d7368ddd7ded4e70f2a3bb9d2f4 (patch) | |
tree | 2dc9a366e0854d852a17ef32ee819b00a6b61778 /dbaccess/source | |
parent | 732476f2e3c10edf1776171605d8ce6c6b22338f (diff) |
loplugin:constantparam in xmloff/
Change-Id: I376f1d4ac65de584f9caa6ba8e25e43216374112
Reviewed-on: https://gerrit.libreoffice.org/23295
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/core/recovery/subcomponentrecovery.cxx | 7 | ||||
-rw-r--r-- | dbaccess/source/filter/xml/xmlfilter.cxx | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/dbaccess/source/core/recovery/subcomponentrecovery.cxx b/dbaccess/source/core/recovery/subcomponentrecovery.cxx index 18e59d47eb8f..bb852c5706c6 100644 --- a/dbaccess/source/core/recovery/subcomponentrecovery.cxx +++ b/dbaccess/source/core/recovery/subcomponentrecovery.cxx @@ -185,7 +185,7 @@ namespace dbaccess public: virtual void AddAttribute( enum ::xmloff::token::XMLTokenEnum i_eName, const OUString& i_rValue ) override; virtual void AddAttribute( enum ::xmloff::token::XMLTokenEnum i_eName, enum ::xmloff::token::XMLTokenEnum i_eValue ) override; - virtual void StartElement( enum ::xmloff::token::XMLTokenEnum i_eName, const bool i_bIgnoreWhitespace ) override; + virtual void StartElement( enum ::xmloff::token::XMLTokenEnum i_eName ) override; virtual void EndElement ( const bool i_bIgnoreWhitespace ) override; virtual void Characters( const OUString& i_rCharacters ) override; @@ -214,10 +214,9 @@ namespace dbaccess m_rDelegator.addAttribute( impl_prefix( i_eName ), ::xmloff::token::GetXMLToken( i_eValue ) ); } - void SettingsExportContext::StartElement( enum ::xmloff::token::XMLTokenEnum i_eName, const bool i_bIgnoreWhitespace ) + void SettingsExportContext::StartElement( enum ::xmloff::token::XMLTokenEnum i_eName ) { - if ( i_bIgnoreWhitespace ) - m_rDelegator.ignorableWhitespace( " " ); + m_rDelegator.ignorableWhitespace( " " ); m_rDelegator.startElement( impl_prefix( i_eName ) ); } diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx index 44a3848b4a9e..340360e59b30 100644 --- a/dbaccess/source/filter/xml/xmlfilter.cxx +++ b/dbaccess/source/filter/xml/xmlfilter.cxx @@ -734,7 +734,7 @@ SvXMLImportContext* ODBFilter::CreateStylesContext(sal_uInt16 _nPrefix,const OUS SvXMLImportContext* ODBFilter::CreateScriptContext( const OUString& _rLocalName ) { - return new XMLScriptContext( *this, XML_NAMESPACE_OFFICE, _rLocalName, GetModel() ); + return new XMLScriptContext( *this, _rLocalName, GetModel() ); } |