| 533 | } |
| 534 | |
| 535 | void MacroTreeModel::MoveToBeginningOfGroup(std::shared_ptr<Macro> item, |
| 536 | std::shared_ptr<Macro> group) |
| 537 | { |
| 538 | auto it = std::find(_macros.begin(), _macros.end(), item); |
| 539 | assert(it != _macros.end()); |
| 540 | std::shared_ptr<Macro> tmp = *it; |
| 541 | _macros.erase(it); |
| 542 | it = std::find(_macros.begin(), _macros.end(), group); |
| 543 | assert(it != _macros.end()); |
| 544 | _macros.insert(std::next(it), tmp); |
| 545 | |
| 546 | Reset(_macros); |
| 547 | } |
| 548 | |
| 549 | void MacroTreeModel::Remove(std::shared_ptr<Macro> item) |
| 550 | { |
no test coverage detected