/* ======================== idSnapShot::objectBuffer_t::operator= ======================== */ void idSnapShot::objectBuffer_t::operator=( const idSnapShot::objectBuffer_t& other ) { //assert( mem.IsMapHeap() ); if( this != &other ) { _Release(); data = other.data; size = other.size; _AddRef(); } }
CSciEdit::CSciEdit(HINSTANCE hInst) { m_dllHandle = 0; m_refCount = 0; if (hInst) { m_hinst = hInst; } else { m_hinst = AfxGetInstanceHandle(); } ATLASSERT(m_hinst); _AddRef(); }