Skip to content
Snippets Groups Projects
Commit 64bdced6 authored by hcasse's avatar hcasse
Browse files

xom/dtd: added Element destructor.

parent 262ca09b
No related branches found
No related tags found
No related merge requests found
......@@ -174,6 +174,7 @@ class Element: public Content {
public:
Element(xom::String name);
Element(xom::String name, Content& content);
~Element();
inline xom::String name() const { return _name; }
inline Content& content() const { return _content; }
......
......@@ -759,7 +759,8 @@ Content& ignored = _ignored;
* @param name Element name.
*/
Element::Element(xom::String name)
: _name(name), _content(EMPTY) { }
: _name(name), _content(EMPTY)
{ }
/**
* Build an element with the given content.
......@@ -767,7 +768,13 @@ Element::Element(xom::String name)
* @param content Element content.
*/
Element::Element(xom::String name, Content& content)
: _name(name), _content(content) { }
: _name(name), _content(content)
{ }
///
Element::~Element() {
}
/**
* @fn xom::String Element::name() const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment