gcc4 fixes

This commit is contained in:
jez_higgins 2006-01-05 16:30:31 +00:00
parent 16a95885ca
commit 655a906071
2 changed files with 12 additions and 11 deletions

View file

@ -13,32 +13,32 @@ class Parser : public SAX2DOM::Parser<stringT, string_adaptorT, SAX_parser>
{
typedef SAX2DOM::Parser<stringT, string_adaptorT, SAX_parser> BaseT;
public:
typedef boost::function2<void, DOM::Node<stringT> &, DOM::Node<stringT> &> ElementHandlerT;
typedef boost::function2<void, DOM::Node<stringT> &, DOM::Node<stringT> &> ElementHandlerT;
void setElementEndHandler(ElementHandlerT func)
{
elementEndFunc_ = func;
} // setElementEndHandler
{
elementEndFunc_ = func;
} // setElementEndHandler
protected:
virtual void endElement(const stringT& namespaceURI, const stringT& localName,
const stringT& qName)
{
if(currentNode() == 0)
if(BaseT::currentNode() == 0)
return;
DOM::Node<stringT> child(currentNode());
DOM::Node<stringT> child(BaseT::currentNode());
BaseT::endElement(namespaceURI, localName, qName);
if(!!elementEndFunc_)
elementEndFunc_(currentNode(), child);
if(!!elementEndFunc_)
elementEndFunc_(BaseT::currentNode(), child);
} // endElement
private:
ElementHandlerT elementEndFunc_;
ElementHandlerT elementEndFunc_;
}; // class Parser
} // namespace DualMode
#endif
#endif

View file

@ -65,4 +65,5 @@ class escaper
} // namespace XML
} // namespace Arabica
#endif // ARABICA_UTILS_ESCAPER_HPP
#endif // ARABICA_UTILS_ESCAPER_HPP