From 2354a42010b3a024f3c767105f95d0593641c4f1 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 17 Nov 2016 01:44:03 +1100 Subject: Turn xmlfile API into something that looks like C++ It's still a bit quirky but it's far better encapsulated before, and it plays nice with const (nw) --- src/frontend/mame/cheat.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/frontend/mame/cheat.h') diff --git a/src/frontend/mame/cheat.h b/src/frontend/mame/cheat.h index febe1f85cfd..aa08106b15a 100644 --- a/src/frontend/mame/cheat.h +++ b/src/frontend/mame/cheat.h @@ -76,7 +76,7 @@ class cheat_parameter { public: // construction/destruction - cheat_parameter(cheat_manager &manager, symbol_table &symbols, const char *filename, xml_data_node ¶mnode); + cheat_parameter(cheat_manager &manager, symbol_table &symbols, const char *filename, xml_data_node const ¶mnode); // queries const char *text(); @@ -129,7 +129,7 @@ class cheat_script { public: // construction/destruction - cheat_script(cheat_manager &manager, symbol_table &symbols, const char *filename, xml_data_node &scriptnode); + cheat_script(cheat_manager &manager, symbol_table &symbols, const char *filename, xml_data_node const &scriptnode); // getters script_state state() const { return m_state; } @@ -144,7 +144,7 @@ private: { public: // construction/destruction - script_entry(cheat_manager &manager, symbol_table &symbols, const char *filename, xml_data_node &entrynode, bool isaction); + script_entry(cheat_manager &manager, symbol_table &symbols, const char *filename, xml_data_node const &entrynode, bool isaction); // actions void execute(cheat_manager &manager, uint64_t &argindex); @@ -156,7 +156,7 @@ private: { public: // construction/destruction - output_argument(cheat_manager &manager, symbol_table &symbols, const char *filename, xml_data_node &argnode); + output_argument(cheat_manager &manager, symbol_table &symbols, const char *filename, xml_data_node const &argnode); // getters int count() const { return m_count; } @@ -199,7 +199,7 @@ class cheat_entry { public: // construction/destruction - cheat_entry(cheat_manager &manager, symbol_table &globaltable, const char *filename, xml_data_node &cheatnode); + cheat_entry(cheat_manager &manager, symbol_table &globaltable, const char *filename, xml_data_node const &cheatnode); ~cheat_entry(); // getters -- cgit v1.2.3