Fixed silly bug in node cloning

This commit is contained in:
Jesse Beder
2009-10-30 20:29:14 +00:00
parent ec62dc547e
commit 3779e4255d

View File

@@ -27,7 +27,7 @@ namespace YAML
Node::Node(const Mark& mark, const std::string& anchor, const std::string& tag, const Content *pContent) Node::Node(const Mark& mark, const std::string& anchor, const std::string& tag, const Content *pContent)
: m_mark(mark), m_anchor(anchor), m_tag(tag), m_pContent(0), m_alias(false), m_pIdentity(this), m_referenced(false) : m_mark(mark), m_anchor(anchor), m_tag(tag), m_pContent(0), m_alias(false), m_pIdentity(this), m_referenced(false)
{ {
if(m_pContent) if(pContent)
m_pContent = pContent->Clone(); m_pContent = pContent->Clone();
} }