diff --git a/examples/SAX/SimpleHandler.cpp b/examples/SAX/SimpleHandler.cpp index 7c97ec6c..c41ce27a 100644 --- a/examples/SAX/SimpleHandler.cpp +++ b/examples/SAX/SimpleHandler.cpp @@ -7,7 +7,7 @@ ////////////////////////////////////////////// // EntityResolver -Arabica::SAX::InputSource SimpleHandler::resolveEntity(const std::string& publicId, const std::string& systemId) +Arabica::SAX::InputSource SimpleHandler::resolveEntity(const std::string& /* publicId */, const std::string& /* systemId */) { return Arabica::SAX::InputSource(); } // resolveEntity @@ -56,8 +56,10 @@ void SimpleHandler::endPrefixMapping(const std::string& prefix) std::cout << "endPrefixMapping " << prefix << std::endl; } // startPrefixMapping -void SimpleHandler::startElement(const std::string& namespaceURI, const std::string& localName, - const std::string& qName, const Arabica::SAX::Attributes& atts) +void SimpleHandler::startElement(const std::string& namespaceURI, + const std::string& localName, + const std::string& qName, + const Arabica::SAX::Attributes& /* atts */) { if(localName.length()) std::cout << "Start Element: " << namespaceURI << ":" << localName << std::endl; @@ -65,8 +67,9 @@ void SimpleHandler::startElement(const std::string& namespaceURI, const std::str std::cout << "Start Element: " << qName << std::endl; } // startElement -void SimpleHandler::endElement(const std::string& namespaceURI, const std::string& localName, - const std::string& qName) +void SimpleHandler::endElement(const std::string& namespaceURI, + const std::string& localName, + const std::string& /* qName */) { std::cout << "endElement: " << namespaceURI << ":" << localName << std::endl; } // endElement diff --git a/examples/SAX/SimpleHandler.hpp b/examples/SAX/SimpleHandler.hpp index 42065735..40f491d5 100644 --- a/examples/SAX/SimpleHandler.hpp +++ b/examples/SAX/SimpleHandler.hpp @@ -40,7 +40,7 @@ public: //////////////////////////////////////////////////// // ContentHandler - virtual void setDocumentLocator(const LocatorT& locator) { } + virtual void setDocumentLocator(const LocatorT& /* locator */) { } virtual void startDocument(); virtual void endDocument(); virtual void startPrefixMapping(const std::string& prefix, const std::string& uri);