listbox associative category access

This commit is contained in:
Jinhao
2016-06-03 08:00:19 +08:00
parent f84e91990d
commit 5b1891c186
4 changed files with 208 additions and 83 deletions

View File

@@ -364,7 +364,7 @@ namespace nana
std::size_t pos = 0;
for (auto & m : items_)
{
if (m->key && detail::pred_equal_by_less(m->key.get(), p.get()))
if (m->key && detail::pred_equal(m->key.get(), p.get()))
return pos;
++pos;
}
@@ -384,7 +384,7 @@ namespace nana
std::size_t pos = 0;
for (auto & m : items_)
{
if (m->key && detail::pred_equal_by_less(m->key.get(), kv))
if (m->key && detail::pred_equal(m->key.get(), kv))
{
erase(pos);
return;