diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2014-11-03 02:11:53 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2014-11-03 02:11:53 +0100 |
commit | 0d07af8a5e33070fd90ee00b706f7a03f8469354 (patch) | |
tree | bf2e45a14638ef43c3a2a65cc2b2977f9f886f6e /src/menu.h | |
parent | 7bfa120f37659971954f05a7abd866b743b339e2 (diff) |
menu: change std::forward to std::move
Diffstat (limited to 'src/menu.h')
-rw-r--r-- | src/menu.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ namespace NC { template <typename ItemT> class Menu : public Window { struct ItemProxy; - + public: struct Item { @@ -555,7 +555,7 @@ void Menu<ItemT>::resizeList(size_t new_size) template <typename ItemT> void Menu<ItemT>::addItem(ItemT item, bool is_bold, bool is_inactive) { - m_options.push_back(Item(std::forward<ItemT>(item), is_bold, is_inactive)); + m_options.push_back(Item(std::move(item), is_bold, is_inactive)); } template <typename ItemT> |