| 53 | } |
| 54 | |
| 55 | void CEventSource::operator+= (const CDelegateBase& d) |
| 56 | { |
| 57 | for( int i = 0; i < m_aDelegates.GetSize(); i++ ) { |
| 58 | CDelegateBase* pObject = static_cast<CDelegateBase*>(m_aDelegates[i]); |
| 59 | if( pObject && pObject->Equals(d) ) return; |
| 60 | } |
| 61 | |
| 62 | m_aDelegates.Add(d.Copy()); |
| 63 | } |
| 64 | |
| 65 | void CEventSource::operator+= (FnType pFn) |
| 66 | { |
nothing calls this directly
no test coverage detected