Bazaar developer reference

CvNotificationXMLEntries::DeleteArray()

Defined in
CvNotificationClasses.cpp, line 68
Class
CvNotificationXMLEntries
Hook name
CivHooks::CvNotificationXMLEntries_DeleteArray

Hooks

static bool BeforeCvNotificationXMLEntries_DeleteArray(CvNotificationXMLEntries* self);static void AfterCvNotificationXMLEntries_DeleteArray(CvNotificationXMLEntries* self);static void ReplaceCvNotificationXMLEntries_DeleteArray(void (*original)(CvNotificationXMLEntries*), CvNotificationXMLEntries* self);CivRegisterBefore<CivHooks::CvNotificationXMLEntries_DeleteArray>(host, &BeforeCvNotificationXMLEntries_DeleteArray);CivRegisterAfter<CivHooks::CvNotificationXMLEntries_DeleteArray>(host, &AfterCvNotificationXMLEntries_DeleteArray);CivRegisterReplace<CivHooks::CvNotificationXMLEntries_DeleteArray>(host, &ReplaceCvNotificationXMLEntries_DeleteArray);

Code

67/// Clear policy entries68void CvNotificationXMLEntries::DeleteArray()69{70	for(std::vector<CvNotificationEntry*>::iterator it = m_paNotificationEntries.begin(); it != m_paNotificationEntries.end(); ++it)71	{72		SAFE_DELETE(*it);73	}7475	m_paNotificationEntries.clear();76}

Calls

Called by