diff --git a/include/nana/gui/widgets/listbox.hpp b/include/nana/gui/widgets/listbox.hpp index 34eb0461..b9680983 100644 --- a/include/nana/gui/widgets/listbox.hpp +++ b/include/nana/gui/widgets/listbox.hpp @@ -481,8 +481,8 @@ By \a clicking on a header the list get \a reordered, first up, and then down al template cat_proxy operator[](const Key & ck) { - typedef typename nana::detail::type_escape::type key_t; - std::shared_ptr p(new nana::key>(ck), [](nana::detail::key_interface* p) + using catkey = typename ::nana::detail::type_escape::type; + std::shared_ptr p(new nana::key>(ck), [](nana::detail::key_interface* p) { delete p; }); @@ -493,8 +493,8 @@ By \a clicking on a header the list get \a reordered, first up, and then down al template cat_proxy operator[](Key && ck) { - typedef typename nana::detail::type_escape::type key_t; - std::shared_ptr p(new nana::key>(std::move(ck)), [](nana::detail::key_interface* p) + using catkey = typename ::nana::detail::type_escape::type; + std::shared_ptr p(new nana::key>(std::move(ck)), [](nana::detail::key_interface* p) { delete p; });