equal
deleted
inserted
replaced
37 this->SetDoCommandMode(&AITransactionMode::ModeProc, this); |
37 this->SetDoCommandMode(&AITransactionMode::ModeProc, this); |
38 } |
38 } |
39 |
39 |
40 AITransactionMode::~AITransactionMode() |
40 AITransactionMode::~AITransactionMode() |
41 { |
41 { |
|
42 assert(this->GetDoCommandModeInstance() == this); |
42 this->SetDoCommandMode(this->last_mode, this->last_instance); |
43 this->SetDoCommandMode(this->last_mode, this->last_instance); |
43 |
44 |
44 /* Clean up the command_stack nicely (as in: free the cmd_text) */ |
45 /* Clean up the command_stack nicely (as in: free the cmd_text) */ |
45 AITransactionModeCommand command; |
46 AITransactionModeCommand command; |
46 while (!this->command_stack.empty()) { |
47 while (!this->command_stack.empty()) { |