mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Fixed silly bug in node cloning
This commit is contained in:
@@ -27,7 +27,7 @@ namespace YAML
|
||||
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)
|
||||
{
|
||||
if(m_pContent)
|
||||
if(pContent)
|
||||
m_pContent = pContent->Clone();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user