summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'SwifTools/SpellChecker.h')
-rw-r--r--SwifTools/SpellChecker.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/SwifTools/SpellChecker.h b/SwifTools/SpellChecker.h
index 3a9ff38..1c3148b 100644
--- a/SwifTools/SpellChecker.h
+++ b/SwifTools/SpellChecker.h
@@ -9,17 +9,16 @@
#pragma once
-class AspellSpeller;
-class AspellConfig;
+class Hunspell;
namespace Swift {
class SpellChecker {
public:
SpellChecker();
+ ~SpellChecker();
bool isCorrect(const std::string& word);
void getSuggestions(const std::string& word, std::vector<std::string>& list);
private:
- AspellSpeller* speller_;
- AspellConfig* config_;
+ Hunspell* speller_;
};
}