| 797 | } |
| 798 | |
| 799 | std::unique_ptr<MICommand> MIDebugSession::createCommand(CommandType type, const QString& arguments, |
| 800 | CommandFlags flags) const |
| 801 | { |
| 802 | // uses protected ctor, only accessible to MIDebugSession via friendship - cannot use make_unique :( |
| 803 | return std::unique_ptr<MICommand>(new MICommand(type, arguments, flags)); |
| 804 | } |
| 805 | |
| 806 | void MIDebugSession::addCommand(std::unique_ptr<MICommand> cmd) |
| 807 | { |