MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / ~HunspellInterface

Method ~HunspellInterface

src/spellers/HunspellInterface.cpp:339–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339HunspellInterface::~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
353void HunspellInterface::reset_spellers() {
354 // these triggers reload of all hunspells and user dictionaries

Callers

nothing calls this directly

Calls 5

are_paths_equalFunction · 0.85
delete_fileFunction · 0.85
update_word_countFunction · 0.85
c_strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected