Closed GoogleCodeExporter closed 9 years ago
This constructor for Node called by Node::Clone() looks wrong to me:
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)
m_pContent = pContent->Clone();
}
The check for the m_pContent pointer will always fail as it's just been
initialised
to zero. I assume that this hsould actually be checking passed in pointer
pContent
rather than the member variable on the newly constructed node.
Original comment by benjamin...@gmail.com
on 8 Mar 2010 at 1:30
You're right - this has been fixed in the latest revision, but I haven't had
time to push
that to a new version on the main page. Sorry about the confusion.
Original comment by jbe...@gmail.com
on 8 Mar 2010 at 3:40
Original issue reported on code.google.com by
benjamin...@gmail.com
on 8 Mar 2010 at 10:55Attachments: