aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-10-15 11:26:17 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-10-15 11:26:17 +0000
commit20dde20c875bce797a6b47a1e543822aab6ffabc (patch)
treebb577771afe7228751c2d9d081d16660bfc82f5e /paludis/repositories/fake
parent503481c165de28bc0a5db25b7848708df7cb2668 (diff)
downloadpaludis-20dde20c875bce797a6b47a1e543822aab6ffabc.tar.gz
paludis-20dde20c875bce797a6b47a1e543822aab6ffabc.tar.xz
Stop instantiating tokeniser. Fixes: ticket:396
Diffstat (limited to 'paludis/repositories/fake')
-rw-r--r--paludis/repositories/fake/fake_package_id.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/repositories/fake/fake_package_id.cc b/paludis/repositories/fake/fake_package_id.cc
index f097b2fee..282412a35 100644
--- a/paludis/repositories/fake/fake_package_id.cc
+++ b/paludis/repositories/fake/fake_package_id.cc
@@ -98,7 +98,7 @@ void
FakeMetadataKeywordSetKey::set_from_string(const std::string & s)
{
_imp->collection.reset(new KeywordNameSet);
- WhitespaceTokeniser::get_instance()->tokenise(s, create_inserter<KeywordName>(_imp->collection->inserter()));
+ WhitespaceTokeniser::tokenise(s, create_inserter<KeywordName>(_imp->collection->inserter()));
}
FakeMetadataIUseSetKey::FakeMetadataIUseSetKey(const std::string & r,
@@ -114,7 +114,7 @@ FakeMetadataIUseSetKey::set_from_string(const std::string & s, const IUseFlagPar
{
_imp->collection.reset(new IUseFlagSet);
std::list<std::string> tokens;
- WhitespaceTokeniser::get_instance()->tokenise(s, std::back_inserter(tokens));
+ WhitespaceTokeniser::tokenise(s, std::back_inserter(tokens));
for (std::list<std::string>::const_iterator t(tokens.begin()), t_end(tokens.end()) ;
t != t_end ; ++t)
_imp->collection->insert(IUseFlag(*t, m, std::string::npos));