summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladv@rosedu.org>2012-01-28 01:28:22 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-03-09 15:04:01 (GMT)
commit21224565867c695bc41028ce31e567554eb25a0a (patch)
tree1c9d6270d497a115ea431c5e10fae5afad8849a1 /SwifTools/HunspellChecker.cpp
parent65679c27623512a79de7c6d92c75d1a9530fb756 (diff)
downloadswift-contrib-21224565867c695bc41028ce31e567554eb25a0a.zip
swift-contrib-21224565867c695bc41028ce31e567554eb25a0a.tar.bz2
Changed name from vector to List for PositionPairList
Diffstat (limited to 'SwifTools/HunspellChecker.cpp')
-rw-r--r--SwifTools/HunspellChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/SwifTools/HunspellChecker.cpp b/SwifTools/HunspellChecker.cpp
index ba7cedd..6c1b4bb 100644
--- a/SwifTools/HunspellChecker.cpp
+++ b/SwifTools/HunspellChecker.cpp
@@ -37,10 +37,10 @@ void HunspellChecker::getSuggestions(const std::string& word, std::vector<std::s
}
}
-void HunspellChecker::checkFragment(const std::string& fragment, PositionPairVector& misspelledPositions) {
+void HunspellChecker::checkFragment(const std::string& fragment, PositionPairList& misspelledPositions) {
if (!fragment.empty()) {
parser_->check(fragment, misspelledPositions);
- for (PositionPairVector::iterator it = misspelledPositions.begin(); it != misspelledPositions.end();) {
+ for (PositionPairList::iterator it = misspelledPositions.begin(); it != misspelledPositions.end();) {
if (isCorrect(fragment.substr(boost::get<0>(*it), boost::get<1>(*it) - boost::get<0>(*it)))) {
misspelledPositions.erase(it++);
} else {