53 lines
1.0 KiB
C++
53 lines
1.0 KiB
C++
#include "stdafx.h"
|
|
#include "TInterfaceModifyMsgContext.h"
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[]=__FILE__;
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
|
|
TInterfaceModifyMsgContext::TInterfaceModifyMsgContext()
|
|
{
|
|
|
|
}
|
|
|
|
TInterfaceModifyMsgContext::~TInterfaceModifyMsgContext()
|
|
{
|
|
AcDbDatabase* pDb = NULL;
|
|
CPtrArray* pArray = NULL;
|
|
POSITION ps;
|
|
for (ps = m_mapDb2TIMsgs.GetStartPosition();ps != NULL;)
|
|
{
|
|
m_mapDb2TIMsgs.GetNextAssoc(ps,(void*&)pDb,(void*&)pArray);
|
|
if (pArray != NULL)
|
|
{
|
|
pArray->RemoveAll();
|
|
delete pArray;
|
|
}
|
|
}
|
|
m_mapDb2TIMsgs.RemoveAll();
|
|
|
|
for (ps = m_mapDb2TAMsgs.GetStartPosition();ps != NULL;)
|
|
{
|
|
m_mapDb2TAMsgs.GetNextAssoc(ps,(void*&)pDb,(void*&)pArray);
|
|
if (pArray != NULL)
|
|
{
|
|
pArray->RemoveAll();
|
|
delete pArray;
|
|
}
|
|
}
|
|
m_mapDb2TAMsgs.RemoveAll();
|
|
|
|
for (ps = m_mapDb2TUMsgs.GetStartPosition();ps != NULL;)
|
|
{
|
|
m_mapDb2TUMsgs.GetNextAssoc(ps,(void*&)pDb,(void*&)pArray);
|
|
if (pArray != NULL)
|
|
{
|
|
pArray->RemoveAll();
|
|
delete pArray;
|
|
}
|
|
}
|
|
m_mapDb2TUMsgs.RemoveAll();
|
|
}
|