void CJSONValue::Insert (const CJSONValue &Source) // Insert // // Appends to the end of an array { ASSERT(m_iType == typeArray); ArrayType *pArray = (ArrayType *)m_pValue; pArray->Insert(Source); }
void CJSONValue::InsertHandoff (CJSONValue &Source) // InsertHandoff // // Appends to the end of an array { ASSERT(m_iType == typeArray); ArrayType *pArray = (ArrayType *)m_pValue; CJSONValue *pNewValue = pArray->Insert(); pNewValue->TakeHandoff(Source); }