void Burger::LinkedListObjects::PrependObject(void *pData,Object::ProcDataDelete pDataDelete) { // Create the new object Object *pObject = Object::New(pData,pDataDelete); // If successful, prepend it if (pObject) { PrependObject(pObject); } }
void Burger::LinkedListObjects::PrependObject(const char *pString) { char *pStringCopy = StringDuplicate(pString); if (pStringCopy) { // Create the new object Object *pObject = Object::New(pStringCopy); // If successful, append it if (pObject) { PrependObject(pObject); } } }
// Prepend the given pObject> to the OMObjectVector. AAFRESULT STDMETHODCALLTYPE ImplAAFRefArrayValue::PrependElement( ImplAAFPropertyValue* pPropertyValue) { AAFRESULT result = AAFRESULT_SUCCESS; if (NULL == pPropertyValue) return AAFRESULT_NULL_PARAM; ImplAAFStorable * pObject = GetStorableFromPropertyValue(pPropertyValue, result); if (AAFRESULT_FAILED(result)) return result; result = PrependObject(pObject); return result; }