fix examples

This commit is contained in:
complement 2002-11-23 19:54:58 +00:00
parent 4471e53f48
commit 46d5dc5ef2
4 changed files with 12 additions and 10 deletions

View file

@ -1,5 +1,6 @@
#pragma warning(disable:4786)
#ifdef _MSC_VER
# pragma warning(disable:4786)
#endif
#include "SimpleHandler.h"
#include <iostream>
@ -92,17 +93,17 @@ void SimpleHandler::skippedEntity(const std::string& name)
/////////////////////////////////////////////////////
// ErrorHandler
void SimpleHandler::warning(const SAX::SAXException& exception)
void SimpleHandler::warning(const SAX::SAXParseException& exception)
{
std::cerr << "WARNING: " << exception.what() << std::endl;
} // warning
void SimpleHandler::error(const SAX::SAXException& exception)
void SimpleHandler::error(const SAX::SAXParseException& exception)
{
std::cerr << "ERROR : " << exception.what() << std::endl;
} // error
void SimpleHandler::fatalError(const SAX::SAXException& exception)
void SimpleHandler::fatalError(const SAX::SAXParseException& exception)
{
std::cerr << "FATAL : " << exception.what() << std::endl;
} // fatalError

View file

@ -56,9 +56,9 @@ public:
/////////////////////////////////////////////////////
// ErrorHandler
virtual void warning(const SAX::SAXException&);
virtual void error(const SAX::SAXException&);
virtual void fatalError(const SAX::SAXException& exception);
virtual void warning(const SAX::SAXParseException&);
virtual void error(const SAX::SAXParseException&);
virtual void fatalError(const SAX::SAXParseException& exception);
///////////////////////////////////////////////////////
// LexicalHandler

View file

@ -1,4 +1,3 @@
#ifdef _MSC_VER
#pragma warning(disable:4786)
#endif

View file

@ -1,4 +1,6 @@
#pragma warning(disable:4786)
#ifdef _MSC_VER
# pragma warning(disable:4786)
#endif
#include <SAX/XMLReader.h>
#include <SAX/helpers/FeatureNames.h>