diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-06 12:31:00 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-09-07 06:48:56 +0000 |
commit | 702496391b2b9ef53f83752b34feb3c33d7fb4e9 (patch) | |
tree | b8049cb54a4a0b8724d8bf6b45b9d176511bf9cf /xmloff/source | |
parent | ec47e78fee143a3f1705c35300003cb2369013c6 (diff) |
loplugin:constantparam in vcl..xmlscript
Change-Id: Icf66c08071b154259c9e551342d30331caf2b15a
Reviewed-on: https://gerrit.libreoffice.org/28685
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/core/nmspmap.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/core/xmlexp.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/script/XMLEventExport.cxx | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/xmloff/source/core/nmspmap.cxx b/xmloff/source/core/nmspmap.cxx index e86b65908583..8f6cb4801aca 100644 --- a/xmloff/source/core/nmspmap.cxx +++ b/xmloff/source/core/nmspmap.cxx @@ -424,8 +424,7 @@ sal_uInt16 SvXMLNamespaceMap::GetIndexByPrefix( const OUString& rPrefix ) const } sal_uInt16 SvXMLNamespaceMap::GetKeyByAttrName( const OUString& rAttrName, - OUString *pLocalName, - sal_uInt16 /*nIdxGuess*/) const + OUString *pLocalName) const { return GetKeyByAttrName_( rAttrName, nullptr, pLocalName ); } @@ -433,8 +432,7 @@ sal_uInt16 SvXMLNamespaceMap::GetKeyByAttrName( sal_uInt16 SvXMLNamespaceMap::GetKeyByAttrName( const OUString& rAttrName, OUString *pPrefix, OUString *pLocalName, - OUString *pNamespace, - sal_uInt16 /*nIdxGuess*/ ) const + OUString *pNamespace ) const { return GetKeyByAttrName_ ( rAttrName, pPrefix, pLocalName, pNamespace ); } diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index 8ed21181dff9..2123dff241d4 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -2026,7 +2026,7 @@ XMLEventExport& SvXMLExport::GetEventExport() if( nullptr == mpEventExport) { // create EventExport on demand - mpEventExport = new XMLEventExport(*this, nullptr); + mpEventExport = new XMLEventExport(*this); // and register standard handlers + names OUString sStarBasic("StarBasic"); diff --git a/xmloff/source/script/XMLEventExport.cxx b/xmloff/source/script/XMLEventExport.cxx index 2091232f2b98..c7cb41dabd22 100644 --- a/xmloff/source/script/XMLEventExport.cxx +++ b/xmloff/source/script/XMLEventExport.cxx @@ -41,13 +41,11 @@ using ::com::sun::star::container::XNameAccess; using ::xmloff::token::XML_EVENT_LISTENERS; -XMLEventExport::XMLEventExport(SvXMLExport& rExp, - const XMLEventNameTranslation* pTranslationTable) : +XMLEventExport::XMLEventExport(SvXMLExport& rExp) : sEventType("EventType"), rExport(rExp), bExtNamespace(false) { - AddTranslationTable(pTranslationTable); } XMLEventExport::~XMLEventExport() |