refs #624 Use std::make_unique instead of BlackMisc::make_unique.

This commit is contained in:
Mathew Sutcliffe
2016-03-19 23:35:01 +00:00
parent bb7cf80a20
commit 3001ca1f44
8 changed files with 25 additions and 61 deletions

View File

@@ -10,7 +10,6 @@
//! \cond PRIVATE
#include "menus.h"
#include "blackmisc/makeunique.h"
#include <type_traits>
#include <cassert>
#include <string>
@@ -78,7 +77,7 @@ namespace XBus
CMenu CMenu::subMenu(std::string name)
{
assert(! name.empty());
auto items = BlackMisc::make_unique<ItemList>();
auto items = std::make_unique<ItemList>();
auto itemsVoidPtr = static_cast<void *>(&*items);
return { XPLMCreateMenu(name.c_str(), m_data->id, XPLMAppendMenuItem(m_data->id, name.c_str(), nullptr, false), handler, itemsVoidPtr), false, std::move(items) };
}