HRESULT CFrameProcessor_Common::Confirm(void) { HRESULT hResult = S_FALSE; if (bIsEditingON()) { vUpdateLoggingFlag(); // First ensure m_bLogFlagTmp is updated vEmptyLogObjArray(m_omLogObjectArray); //m_omLogObjectArray.Copy(m_omLogListTmp); vCopyLogObjArray(m_omLogObjectArray, m_omLogListTmp); m_bExprnFlag_Log = m_bLogFlagTmp; // Then only assign value to log flag hResult = S_OK; } return hResult; }
HRESULT CFrameProcessor_Common::EnableLoggingBlock(USHORT ushBlk, BOOL bEnable) { HRESULT hResult = S_FALSE; CBaseLogObject* pouLogObj = FindLoggingBlock(ushBlk); if (NULL != pouLogObj) { if (pouLogObj->IsLoggingEnable() != bEnable) { pouLogObj->EnableLogging(bEnable); hResult = S_OK; } } if (S_OK == hResult) { vUpdateLoggingFlag(); } return hResult; }