| 49 | ******************************************************************************/ |
| 50 | |
| 51 | void SearchContext::init() noexcept { |
| 52 | mTerm.clear(); |
| 53 | mTermRe = std::nullopt; |
| 54 | mForward = true; |
| 55 | mIndex = 0; |
| 56 | mCandidates.clear(); |
| 57 | mCandidatesFiltered.clear(); |
| 58 | mModel = std::make_shared<slint::VectorModel<ui::SimpleListItemData>>(); |
| 59 | } |
| 60 | |
| 61 | void SearchContext::deinit() noexcept { |
| 62 | mModel.reset(); |
no test coverage detected