summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladv@rosedu.org>2012-01-28 01:28:22 (GMT)
committervlad <vlad@tyrion.(none)>2012-10-13 13:55:44 (GMT)
commit3d6bc0b6181c6cdfc6c0a91960e9dac30ddfdba2 (patch)
treeb5196fc36721783a02492061fbbc865338ed6863 /SwifTools/HunspellChecker.cpp
parenteca3a097403adbd85fe3b0cf366f29ecc37cacc6 (diff)
downloadswift-contrib-3d6bc0b6181c6cdfc6c0a91960e9dac30ddfdba2.zip
swift-contrib-3d6bc0b6181c6cdfc6c0a91960e9dac30ddfdba2.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 {