diff options
author | Aaron Giles <aaron@aarongiles.com> | 2011-04-19 06:02:01 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2011-04-19 06:02:01 +0000 |
commit | d971ce8f36eb00f27da0c2ef8c8b280d568db58c (patch) | |
tree | 70f11c500fa64702e29c0a502ec1941bf8610625 /src/emu/inptport.c | |
parent | 3628e7eaedd083da8d876a618a0af8486b114c55 (diff) |
Privatized most of the m_machine pointers in the system to prevent
direct use.
Diffstat (limited to 'src/emu/inptport.c')
-rw-r--r-- | src/emu/inptport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/inptport.c b/src/emu/inptport.c index 4f487c49033..0c73d1e3f98 100644 --- a/src/emu/inptport.c +++ b/src/emu/inptport.c @@ -2099,7 +2099,7 @@ static void init_port_state(running_machine &machine) /* allocate a new input_port_info structure */ portstate = auto_alloc_clear(machine, input_port_state); ((input_port_config *)port)->state = portstate; - ((input_port_config *)port)->m_machine = &machine; + ((input_port_config *)port)->set_machine(machine); /* start with tail pointers to all the data */ analogstatetail = &portstate->analoglist; @@ -3646,9 +3646,9 @@ input_port_config::input_port_config(const char *_tag) tag(_tag), fieldlist(NULL), state(NULL), - m_machine(NULL), owner(NULL), - active(0) + active(0), + m_machine(NULL) { } |