mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-29 08:36:45 +01:00
getName now returns a const string_type&
This commit is contained in:
parent
eebbdbf121
commit
427d8b64f2
4 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue