summaryrefslogtreecommitdiff
path: root/src/menu.h
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2014-11-03 02:11:53 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2014-11-03 02:11:53 +0100
commit0d07af8a5e33070fd90ee00b706f7a03f8469354 (patch)
treebf2e45a14638ef43c3a2a65cc2b2977f9f886f6e /src/menu.h
parent7bfa120f37659971954f05a7abd866b743b339e2 (diff)
menu: change std::forward to std::move
Diffstat (limited to 'src/menu.h')
-rw-r--r--src/menu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/menu.h b/src/menu.h
index 55c11b82..6cce8301 100644
--- a/src/menu.h
+++ b/src/menu.h
@@ -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>