From 0d07af8a5e33070fd90ee00b706f7a03f8469354 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Mon, 3 Nov 2014 02:11:53 +0100 Subject: [PATCH] menu: change std::forward to std::move --- src/menu.h | 4 ++-- 1 file 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 class Menu : public Window { struct ItemProxy; - + public: struct Item { @@ -555,7 +555,7 @@ void Menu::resizeList(size_t new_size) template void Menu::addItem(ItemT item, bool is_bold, bool is_inactive) { - m_options.push_back(Item(std::forward(item), is_bold, is_inactive)); + m_options.push_back(Item(std::move(item), is_bold, is_inactive)); } template