mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 01:59:33 +08:00
perf: update signatures of functions in Controller
This commit is contained in:
@@ -17,7 +17,7 @@ std::shared_ptr<asst::Status> asst::InstHelper::status() const
|
||||
}
|
||||
bool asst::InstHelper::need_exit() const
|
||||
{
|
||||
return m_inst ? m_inst->need_exit() : false;
|
||||
return m_inst != nullptr && m_inst->need_exit();
|
||||
}
|
||||
|
||||
bool asst::InstHelper::sleep(unsigned millisecond) const
|
||||
|
||||
Reference in New Issue
Block a user