| 337 | } |
| 338 | |
| 339 | HunspellInterface::~HunspellInterface() { |
| 340 | m_is_hunspell_working = false; |
| 341 | |
| 342 | if (!m_system_wrong_dic_path.empty() && !m_user_dic_path.empty() && !are_paths_equal(m_system_wrong_dic_path.c_str(), m_user_dic_path.c_str())) { |
| 343 | WinApi::delete_file(m_system_wrong_dic_path.c_str()); |
| 344 | } |
| 345 | |
| 346 | update_word_count(m_user_dic_path.c_str()); |
| 347 | for (auto &p : m_all_hunspells) { |
| 348 | auto &hs = p.second; |
| 349 | update_word_count(hs.local_dic_path.c_str()); |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | void HunspellInterface::reset_spellers() { |
| 354 | // these triggers reload of all hunspells and user dictionaries |
nothing calls this directly
no test coverage detected