summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/pstate.h')
-rw-r--r--src/lib/netlist/plib/pstate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/netlist/plib/pstate.h b/src/lib/netlist/plib/pstate.h
index c4c1475f1a0..9b88f8f562b 100644
--- a/src/lib/netlist/plib/pstate.h
+++ b/src/lib/netlist/plib/pstate.h
@@ -8,6 +8,8 @@
#ifndef PSTATE_H_
#define PSTATE_H_
+#include <memory>
+
#include "plists.h"
#include "pstring.h"
@@ -83,7 +85,7 @@ protected:
struct pstate_entry_t
{
- using list_t = pvector_t<pstate_entry_t *>;
+ using list_t = pvector_t<std::unique_ptr<pstate_entry_t>>;
pstate_entry_t(const pstring &stname, const pstate_data_type_e dt, const void *owner,
const int size, const int count, void *ptr, bool is_ptr)