}
spellers_[spellerID(lang, variety)] = m;
- return 0 == m.config ? 0 : to_aspell_speller(m.e_speller);
+ return m.e_speller ? to_aspell_speller(m.e_speller) : 0;
}
// MSVC compiled Aspell doesn't like it.
return OK;
- const char * word_str = to_utf8(word.word()).c_str();
- int const word_ok = aspell_speller_check(m, word_str, -1);
+ string const word_str = to_utf8(word.word());
+ int const word_ok = aspell_speller_check(m, word_str.c_str(), -1);
LASSERT(word_ok != -1, /**/);
return (word_ok) ? OK : UNKNOWN_WORD;
if (lang) {
for (; it != end && !have; ++it) {
- have = d->isValidDictionary(it->second.config, lang->code(), lang->variety());
+ have = it->second.config && d->isValidDictionary(it->second.config, lang->code(), lang->variety());
}
if (!have) {
AspellConfig * config = d->getConfig(lang->code(), lang->variety());