summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-25 15:09:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-28 08:32:56 +0200
commit3a36cf434fb4a967c9ea767cb7ac5f4da0502a0d (patch)
treeab1747ff3e977ad322cf05b68626879f2c68e6e0 /sax
parent74ccd02eda2d6325a27266fd935aba29b3d75020 (diff)
loplugin:checkunusedparams in configmgr and vcl
Change-Id: I7226d01f38e6edaf3868d7267d9b02dbdbc9e5ba Reviewed-on: https://gerrit.libreoffice.org/36975 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/fastparser.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index d160b97c7e50..a8227865b261 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -205,7 +205,7 @@ namespace sax_fastparser {
class FastSaxParserImpl
{
public:
- explicit FastSaxParserImpl(FastSaxParser* pFront);
+ explicit FastSaxParserImpl();
~FastSaxParserImpl();
// XFastParser
@@ -234,8 +234,8 @@ public:
// called by the C callbacks of the expat parser
void callbackStartElement( const xmlChar *localName , const xmlChar* prefix, const xmlChar* URI,
- int numNamespaces, const xmlChar** namespaces, int numAttributes, int defaultedAttributes, const xmlChar **attributes );
- void callbackEndElement( const xmlChar* localName, const xmlChar* prefix, const xmlChar* URI );
+ int numNamespaces, const xmlChar** namespaces, int numAttributes, const xmlChar **attributes );
+ void callbackEndElement();
void callbackCharacters( const xmlChar* s, int nLen );
#if 0
bool callbackExternalEntityRef( XML_Parser parser, const xmlChar *openEntityNames, const xmlChar *base, const xmlChar *systemId, const xmlChar *publicId);
@@ -309,16 +309,16 @@ private:
extern "C" {
static void call_callbackStartElement(void *userData, const xmlChar *localName , const xmlChar* prefix, const xmlChar* URI,
- int numNamespaces, const xmlChar** namespaces, int numAttributes, int defaultedAttributes, const xmlChar **attributes)
+ int numNamespaces, const xmlChar** namespaces, int numAttributes, int /*defaultedAttributes*/, const xmlChar **attributes)
{
FastSaxParserImpl* pFastParser = static_cast<FastSaxParserImpl*>( userData );
- pFastParser->callbackStartElement( localName, prefix, URI, numNamespaces, namespaces, numAttributes, defaultedAttributes, attributes );
+ pFastParser->callbackStartElement( localName, prefix, URI, numNamespaces, namespaces, numAttributes, attributes );
}
-static void call_callbackEndElement(void *userData, const xmlChar* localName, const xmlChar* prefix, const xmlChar* URI)
+static void call_callbackEndElement(void *userData, const xmlChar* /*localName*/, const xmlChar* /*prefix*/, const xmlChar* /*URI*/)
{
FastSaxParserImpl* pFastParser = static_cast<FastSaxParserImpl*>( userData );
- pFastParser->callbackEndElement( localName, prefix, URI );
+ pFastParser->callbackEndElement();
}
static void call_callbackCharacters( void *userData , const xmlChar *s , int nLen )
@@ -631,7 +631,7 @@ void Entity::saveException( const Any & e )
namespace sax_fastparser {
-FastSaxParserImpl::FastSaxParserImpl( FastSaxParser* ) :
+FastSaxParserImpl::FastSaxParserImpl() :
#if 0
mpFront(pFront),
#endif
@@ -1063,7 +1063,7 @@ void FastSaxParserImpl::parse()
// The C-Callbacks
void FastSaxParserImpl::callbackStartElement(const xmlChar *localName , const xmlChar* prefix, const xmlChar* URI,
- int numNamespaces, const xmlChar** namespaces, int numAttributes, int /*defaultedAttributes*/, const xmlChar **attributes)
+ int numNamespaces, const xmlChar** namespaces, int numAttributes, const xmlChar **attributes)
{
if (!pendingCharacters.isEmpty())
sendPendingCharacters();
@@ -1218,7 +1218,7 @@ void FastSaxParserImpl::callbackStartElement(const xmlChar *localName , const xm
}
}
-void FastSaxParserImpl::callbackEndElement( const xmlChar*, const xmlChar*, const xmlChar* )
+void FastSaxParserImpl::callbackEndElement()
{
if (!pendingCharacters.isEmpty())
sendPendingCharacters();
@@ -1360,7 +1360,7 @@ bool FastSaxParserImpl::callbackExternalEntityRef(
}
#endif
-FastSaxParser::FastSaxParser() : mpImpl(new FastSaxParserImpl(this)) {}
+FastSaxParser::FastSaxParser() : mpImpl(new FastSaxParserImpl) {}
FastSaxParser::~FastSaxParser()
{