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

Method operator-=

DuiLib/Utils/UIDelegate.cpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void CEventSource::operator-= (const CDelegateBase& d)
71{
72 for( int i = 0; i < m_aDelegates.GetSize(); i++ ) {
73 CDelegateBase* pObject = static_cast<CDelegateBase*>(m_aDelegates[i]);
74 if( pObject && pObject->Equals(d) ) {
75 delete pObject;
76 m_aDelegates.Remove(i);
77 return;
78 }
79 }
80}
81void CEventSource::operator-= (FnType pFn)
82{
83 (*this) -= MakeDelegate(pFn);

Callers

nothing calls this directly

Calls 4

MakeDelegateFunction · 0.85
EqualsMethod · 0.80
GetSizeMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected