Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/modules/spell/spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include "spell.h"
#include "fcitx-config/iniparser.h"
#include "fcitx/addonmanager.h"
#include "config.h"
#include "spell-custom.h"
#ifdef ENABLE_ENCHANT
Expand Down Expand Up @@ -110,12 +109,6 @@ Spell::hintForDisplay(const std::string &language, SpellProvider provider,

return iter->second->hint(language, word, limit);
}

class SpellModuleFactory : public AddonFactory {
AddonInstance *create(AddonManager *manager) override {
return new Spell(manager->instance());
}
};
} // namespace fcitx

FCITX_ADDON_FACTORY(fcitx::SpellModuleFactory)
7 changes: 7 additions & 0 deletions src/modules/spell/spell.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "fcitx-utils/i18n.h"
#include "fcitx/addonfactory.h"
#include "fcitx/addoninstance.h"
#include "fcitx/addonmanager.h"
#include "fcitx/instance.h"
#include "spell_public.h"

Expand Down Expand Up @@ -104,6 +105,12 @@ class SpellBackend {
private:
Spell *parent_;
};

class SpellModuleFactory : public AddonFactory {
AddonInstance *create(AddonManager *manager) override {
return new Spell(manager->instance());
}
};
} // namespace fcitx

#endif // _FCITX_MODULES_SPELL_SPELL_H_
Loading