[commands] Change C++ CommandPtr to use CommandBase (#4677)

This commit is contained in:
Starlight220
2022-11-21 19:45:50 +02:00
committed by GitHub
parent 98e922313b
commit 0bee875aff
5 changed files with 27 additions and 29 deletions

View File

@@ -219,12 +219,12 @@ CommandPtr CommandPtr::HandleInterrupt(std::function<void(void)> handler) && {
});
}
Command* CommandPtr::get() const {
CommandBase* CommandPtr::get() const {
AssertValid();
return m_ptr.get();
}
std::unique_ptr<Command> CommandPtr::Unwrap() && {
std::unique_ptr<CommandBase> CommandPtr::Unwrap() && {
AssertValid();
return std::move(m_ptr);
}