HexEdit/Xmltree.cpp
void CXmlTree::CFrag::InsertKids(CElt *pelt, const CElt *before)
{
	ASSERT(m_powner != NULL && m_pfrag != NULL);
	ASSERT(before == NULL || before->m_powner == m_powner);
	if (before != NULL)
		pelt->m_pelt->insertBefore(m_pfrag, _variant_t((IDispatch *)(before->m_pelt)));
	else
		pelt->m_pelt->insertBefore(m_pfrag, _variant_t());
	pelt->GetOwner()->SetModified(true);
}
// We could have made this a superset of above by defaulting "before" to NULL,
// but we want to leave the above "InsertKids" function unchanged as we know it works.

We could have made this a superset of above by defaulting "before" to NULL,
but we want to leave the above "InsertKids" function unchanged as we know it works.
We could have made this a superset of above by defaulting " before " to NULL but we want to leave the above " InsertKids " function unchanged as we know it works .
void CXmlTree::CFrag::InsertKids(CElt *pelt, const CElt *before)
{
	ASSERT(m_powner != NULL && m_pfrag != NULL);
	ASSERT(before == NULL || before->m_powner == m_powner);
	if (before != NULL)
		pelt->m_pelt->insertBefore(m_pfrag, _variant_t((IDispatch *)(before->m_pelt)));
	else
		pelt->m_pelt->insertBefore(m_pfrag, _variant_t());
	pelt->GetOwner()->SetModified(true);
}
void CXmlTree :: CFrag :: InsertKids ( CElt * pelt , const CElt * before ) { ASSERT ( m_powner != NULL && m_pfrag != NULL ) ; ASSERT ( before == NULL || before -> m_powner == m_powner ) ; if ( before != NULL ) pelt -> m_pelt -> insertBefore ( m_pfrag , _variant_t ( ( IDispatch * ) ( before -> m_pelt ) ) ) ; else pelt -> m_pelt -> insertBefore ( m_pfrag , _variant_t ( ) ) ; pelt -> GetOwner ( ) -> SetModified ( true ) ; }
We could have made this a superset of above by defaulting "before" to NULL,
but we want to leave the above "InsertKids" function unchanged as we know it works.
We could have made this a superset of above by defaulting " before " to NULL but we want to leave the above " InsertKids " function unchanged as we know it works .