TOOL_MANAGER is no longer static. Reworked autoregistration of TOOL_ACTIONs.
This commit is contained in:
@@ -103,14 +103,6 @@ TOOL_MANAGER::TOOL_MANAGER() :
|
||||
|
||||
|
||||
TOOL_MANAGER::~TOOL_MANAGER()
|
||||
{
|
||||
DeleteAll();
|
||||
|
||||
delete m_actionMgr;
|
||||
}
|
||||
|
||||
|
||||
void TOOL_MANAGER::DeleteAll()
|
||||
{
|
||||
std::map<TOOL_BASE*, TOOL_STATE*>::iterator it, it_end;
|
||||
|
||||
@@ -122,6 +114,7 @@ void TOOL_MANAGER::DeleteAll()
|
||||
}
|
||||
|
||||
m_toolState.clear();
|
||||
delete m_actionMgr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user