MCPcopy Create free account
hub / github.com/cinience/RedisStudio / operator+=

Method operator+=

DuiLib/Utils/UIDelegate.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void 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
65void CEventSource::operator+= (FnType pFn)
66{

Callers

nothing calls this directly

Calls 5

MakeDelegateFunction · 0.85
EqualsMethod · 0.80
GetSizeMethod · 0.45
AddMethod · 0.45
CopyMethod · 0.45

Tested by

no test coverage detected