fix typename problem

This commit is contained in:
complement 2002-11-23 20:10:46 +00:00
parent 90739325f9
commit 48124bd5ab
3 changed files with 10 additions and 8 deletions

View file

@ -36,7 +36,7 @@ class basic_Writer : public basic_XMLFilterImpl<string_type>
virtual void endDocument();
virtual void startElement(const stringT& namespaceURI, const stringT& localName,
const stringT& qName, const AttributesT& atts);
const stringT& qName, const typename XMLFilterT::AttributesT& atts);
virtual void endElement(const stringT& namespaceURI, const stringT& localName,
const stringT& qName);
@ -72,7 +72,7 @@ void basic_Writer<string_type>::endDocument()
template<class string_type>
void basic_Writer<string_type>::startElement(
const stringT& namespaceURI, const stringT& localName,
const stringT& qName, const AttributesT& atts)
const stringT& qName, const typename XMLFilterT::AttributesT& atts)
{
doIndent();
*stream_ << UnicodeT::LESS_THAN_SIGN << qName;

View file

@ -2,7 +2,9 @@
* $Id$
*/
#ifdef _MSC_VER
#pragma warning(disable: 4786)
#endif
#include <SAX/helpers/InputSourceResolver.h>
#include <istream>

View file

@ -200,7 +200,7 @@ public:
parent_->parse(input);
} // parse
virtual std::auto_ptr<PropertyBase> doGetProperty(const stringT& name)
virtual std::auto_ptr<typename XMLReaderT::PropertyBase> doGetProperty(const stringT& name)
{
if(parent_)
return parent_->doGetProperty(name);
@ -208,7 +208,7 @@ public:
throw new SAXNotRecognizedException("Property: " + name);
} // doGetProperty
virtual void doSetProperty(const stringT& name, std::auto_ptr<PropertyBase> value)
virtual void doSetProperty(const stringT& name, typename std::auto_ptr<typename XMLReaderT::PropertyBase> value)
{
if(parent_)
{
@ -347,7 +347,7 @@ public:
* @see basic_ContentHandler#startElement
*/
virtual void startElement(const stringT& namespaceURI, const stringT& localName,
const stringT& qName, const AttributesT& atts)
const stringT& qName, const typename ContentHandlerT::AttributesT& atts)
{
if(contentHandler_)
contentHandler_->startElement(namespaceURI, localName, qName, atts);
@ -426,7 +426,7 @@ public:
* @param exception The warning as an exception.
* @see basic_ErrorHandler#warning
*/
virtual void warning(const SAXException& exception)
virtual void warning(const SAXParseException& exception)
{
if(errorHandler_)
errorHandler_->warning(exception);
@ -438,7 +438,7 @@ public:
* @param exception The error as an exception.
* @see basic_ErrorHandler#error
*/
virtual void error(const SAXException& exception)
virtual void error(const SAXParseException& exception)
{
if(errorHandler_)
errorHandler_->error(exception);
@ -450,7 +450,7 @@ public:
* @param exception The error as an exception.
* @see basic_ErrorHandler#fatalError
*/
virtual void fatalError(const SAXException& exception)
virtual void fatalError(const SAXParseException& exception)
{
if(errorHandler_)
errorHandler_->fatalError(exception);