From 50e2dfa0b9c87fb70c9036f8a5cbd84a83021172 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sat, 3 Sep 2016 22:53:44 -0700 Subject: [PATCH] RecentEntries: Make templated type of std::list. --- firmware/application/recent_entries.hpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/firmware/application/recent_entries.hpp b/firmware/application/recent_entries.hpp index 225765881..795bf602c 100644 --- a/firmware/application/recent_entries.hpp +++ b/firmware/application/recent_entries.hpp @@ -34,14 +34,7 @@ #include template -class RecentEntries : public std::list { -public: - using EntryType = Entry; - using Key = typename EntryType::Key; - using ContainerType = std::list; - using const_reference = typename ContainerType::const_reference; - using const_iterator = typename ContainerType::const_iterator; -}; +using RecentEntries = std::list; template typename ContainerType::const_iterator find(const ContainerType& entries, const Key key) { @@ -105,7 +98,7 @@ using RecentEntriesColumn = std::pair; template class RecentEntriesView : public View { public: - using Entry = typename Entries::EntryType; + using Entry = typename Entries::value_type; std::function on_select;