summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pstate.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-05-25 14:52:40 +0200
committer couriersud <couriersud@arcor.de>2016-05-25 14:52:40 +0200
commitf5179f7ec8483f3975cf584dc939c99d8d42954b (patch)
tree74878eef137b9991e5d3cbc3bbacf1029da65030 /src/lib/netlist/plib/pstate.cpp
parentcac1c41edfe85ab1350d77346cb490ee4c0c1298 (diff)
Make netlist compile with c++11, use own implementation of make_unique
to avoid c++14. (nw)
Diffstat (limited to 'src/lib/netlist/plib/pstate.cpp')
-rw-r--r--src/lib/netlist/plib/pstate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/pstate.cpp b/src/lib/netlist/plib/pstate.cpp
index aa5d7b7bae2..095c8c812be 100644
--- a/src/lib/netlist/plib/pstate.cpp
+++ b/src/lib/netlist/plib/pstate.cpp
@@ -36,7 +36,7 @@ ATTR_COLD void pstate_manager_t::save_state_ptr(const pstring &stname, const pst
"DT_FLOAT"
};
- auto p = std::make_unique<pstate_entry_t>(stname, dt, owner, size, count, ptr, is_ptr);
+ auto p = pmake_unique<pstate_entry_t>(stname, dt, owner, size, count, ptr, is_ptr);
m_save.push_back(std::move(p));
}
@@ -70,7 +70,7 @@ template<> ATTR_COLD void pstate_manager_t::save_item(pstate_callback_t &state,
{
//save_state_ptr(stname, DT_CUSTOM, 0, 1, &state);
pstate_callback_t *state_p = &state;
- auto p = std::make_unique<pstate_entry_t>(stname, owner, state_p);
+ auto p = pmake_unique<pstate_entry_t>(stname, owner, state_p);
m_save.push_back(std::move(p));
state.register_state(*this, stname);
}