~Impl()
{
- delete spell_checker_;
+ delete aspell_checker_;
+ delete hunspell_checker_;
}
/// our function handler
{
singleton_ = this;
pimpl_ = new Impl;
- setSpellChecker();
}
SpellChecker * theSpellChecker()
{
+ if (!singleton_->pimpl_->spell_checker_)
+ setSpellChecker();
return singleton_->pimpl_->spell_checker_;
}