Make ci_equal a function

This commit is contained in:
Vinnie Falco
2014-11-06 06:13:11 -08:00
parent a4cd761372
commit 8b84a76d5d
2 changed files with 11 additions and 77 deletions

View File

@@ -70,12 +70,10 @@ public:
Factory*
find (std::string const& name) const
{
beast::ci_equal_to casecmp;
for (List::const_iterator iter (m_list.begin ());
iter != m_list.end (); ++iter)
{
if (casecmp ((*iter)->getName(), name))
if (beast::ci_equal ((*iter)->getName(), name))
return iter->get();
}
return nullptr;