Changeset View
Changeset View
Standalone View
Standalone View
sonnet/plugins/enchant/enchantdict.cpp
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 76 | { | |||
---|---|---|---|---|---|
77 | enchant_dict_store_replacement(m_dict, | 77 | enchant_dict_store_replacement(m_dict, | ||
78 | bad.toUtf8(), bad.toUtf8().length(), | 78 | bad.toUtf8(), bad.toUtf8().length(), | ||
79 | good.toUtf8(), good.toUtf8().length()); | 79 | good.toUtf8(), good.toUtf8().length()); | ||
80 | return true; | 80 | return true; | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | bool QSpellEnchantDict::addToPersonal(const QString &word) | 83 | bool QSpellEnchantDict::addToPersonal(const QString &word) | ||
84 | { | 84 | { | ||
85 | enchant_dict_add_to_pwl(m_dict, word.toUtf8(), | 85 | enchant_dict_add(m_dict, word.toUtf8(), word.toUtf8().length()); | ||
86 | word.toUtf8().length()); | | |||
87 | return true; | 86 | return true; | ||
88 | } | 87 | } | ||
89 | 88 | | |||
90 | bool QSpellEnchantDict::addToSession(const QString &word) | 89 | bool QSpellEnchantDict::addToSession(const QString &word) | ||
91 | { | 90 | { | ||
92 | enchant_dict_add_to_session(m_dict, word.toUtf8(), | 91 | enchant_dict_add_to_session(m_dict, word.toUtf8(), | ||
93 | word.toUtf8().length()); | 92 | word.toUtf8().length()); | ||
94 | return true; | 93 | return true; | ||
95 | } | 94 | } |