Tidy up some xml structures.
This commit is contained in:
parent
875cdc84ff
commit
8771b721d1
31 changed files with 885 additions and 563 deletions
|
@ -1,11 +1,12 @@
|
|||
#include "HtmlElement.h"
|
||||
|
||||
HtmlElement::HtmlElement()
|
||||
HtmlElement::HtmlElement(const std::string& tagName)
|
||||
: XmlElement(tagName)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static std::shared_ptr<HtmlElement> HtmlElement::Create()
|
||||
static std::unique_ptr<HtmlElement> HtmlElement::CreateUnique(const std::string& tagName)
|
||||
{
|
||||
return std::make_shared<HtmlElement>();
|
||||
return std::make_unique<HtmlElement>(tagName);
|
||||
}
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
class HtmlElement : public XmlElement
|
||||
{
|
||||
HtmlElement();
|
||||
HtmlElement(const std::string& tagName);
|
||||
|
||||
static std::shared_ptr<HtmlElement> Create();
|
||||
static std::unique_ptr<HtmlElement> CreateUnique(const std::string& tagName);
|
||||
};
|
||||
|
||||
using HtmlElementPtr = std::shared_ptr<HtmlElement>;
|
||||
using HtmlElementUPtr = std::unique_ptr<HtmlElement>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue