getName now returns a const string_type&

This commit is contained in:
jez_higgins 2005-12-09 15:53:05 +00:00
parent eebbdbf121
commit 427d8b64f2
4 changed files with 6 additions and 6 deletions

View file

@ -29,7 +29,7 @@ class Attr : public Node<stringT>
throw std::bad_cast();
} // Attr
stringT getName() const { return attrImpl()->getName(); }
const stringT& getName() const { return attrImpl()->getName(); }
bool getSpecified() const { return attrImpl()->getSpecified(); }
@ -61,7 +61,7 @@ class Attr_impl : virtual public Node_impl<stringT>
///////////////////////////////////////////////////
// DOM::Attribute methods
virtual stringT getName() const = 0;
virtual const stringT& getName() const = 0;
virtual bool getSpecified() const = 0;

View file

@ -31,7 +31,7 @@ class DocumentType : public Node<stringT>
throw std::bad_cast();
} // DocumentType
stringT getName() const { return dtImpl()->getName(); }
const stringT& getName() const { return dtImpl()->getName(); }
const NamedNodeMap<stringT> getEntities() const { return NamedNodeMap<stringT>(dtImpl()->getEntities()); }
@ -59,7 +59,7 @@ class DocumentType_impl : virtual public Node_impl<stringT>
/////////////////////////////////////////////
// DOM::DocumentType methods
virtual stringT getName() const = 0;
virtual const stringT& getName() const = 0;
virtual NamedNodeMap_impl<stringT>* getEntities() = 0;

View file

@ -42,7 +42,7 @@ class AttrImpl : public DOM::Attr_impl<stringT>,
///////////////////////////////////////////////////
// DOM::Attribute methods
stringT getName() const { return getNodeName(); }
virtual const stringT& getName() const { return getNodeName(); }
virtual bool getSpecified() const
{

View file

@ -56,7 +56,7 @@ class DocumentTypeImpl : public DOM::DocumentType_impl<stringT>,
//////////////////////////////////////////////////////
// DOM::DOMImplementation methods
virtual stringT getName() const
virtual const stringT& getName() const
{
return getNodeName();
} // getName