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/SpellParser.cpp
parent65679c27623512a79de7c6d92c75d1a9530fb756 (diff)
downloadswift-contrib-21224565867c695bc41028ce31e567554eb25a0a.zip
swift-contrib-21224565867c695bc41028ce31e567554eb25a0a.tar.bz2
Changed name from vector to List for PositionPairList
Diffstat (limited to 'SwifTools/SpellParser.cpp')
-rw-r--r--SwifTools/SpellParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/SwifTools/SpellParser.cpp b/SwifTools/SpellParser.cpp
index 8f5120b..440e2a1 100644
--- a/SwifTools/SpellParser.cpp
+++ b/SwifTools/SpellParser.cpp
@@ -36,7 +36,7 @@ struct counter
typedef bool result_type;
// the function operator gets called for each of the matched tokens
template <typename Token>
- bool operator()(Token const& t, PositionPairVector& wordPositions, std::size_t& position) const
+ bool operator()(Token const& t, PositionPairList& wordPositions, std::size_t& position) const
{
switch (t.id()) {
case ID_WWW:
@@ -57,7 +57,7 @@ struct counter
}
};
-void SpellParser::check(const std::string& fragment, PositionPairVector& wordPositions) {
+void SpellParser::check(const std::string& fragment, PositionPairList& wordPositions) {
std::size_t position = 0;
// create the token definition instance needed to invoke the lexical analyzer
word_count_tokens<lex::lexertl::lexer<> > word_count_functor;