diff options
author | 2016-11-17 11:11:39 +1100 | |
---|---|---|
committer | 2016-11-17 11:12:16 +1100 | |
commit | 54444fecff844dbfc08f88fdae75c0f06cc889d7 (patch) | |
tree | 107d5c7250c82247a4cc0278c461124626c4250e /src/osd/modules/debugger/debugqt.cpp | |
parent | 28d1c7004d373759d4b6aea4d6d2c16da0c0d9d9 (diff) |
patch up Qt debugger for new xmlfile API (nw)
Diffstat (limited to 'src/osd/modules/debugger/debugqt.cpp')
-rw-r--r-- | src/osd/modules/debugger/debugqt.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/osd/modules/debugger/debugqt.cpp b/src/osd/modules/debugger/debugqt.cpp index 7cdca830349..ff53278d3a6 100644 --- a/src/osd/modules/debugger/debugqt.cpp +++ b/src/osd/modules/debugger/debugqt.cpp @@ -92,10 +92,10 @@ static void xml_configuration_load(running_machine &machine, config_type cfg_typ xmlConfigurations.clear(); // Configuration load - xml_data_node* wnode = nullptr; - for (wnode = xml_get_sibling(parentnode->child, "window"); wnode != nullptr; wnode = xml_get_sibling(wnode->next, "window")) + xml_data_node const * wnode = nullptr; + for (wnode = parentnode->get_child("window"); wnode != nullptr; wnode = wnode->get_next_sibling("window")) { - WindowQtConfig::WindowType type = (WindowQtConfig::WindowType)xml_get_attribute_int(wnode, "type", WindowQtConfig::WIN_TYPE_UNKNOWN); + WindowQtConfig::WindowType type = (WindowQtConfig::WindowType)wnode->get_attribute_int("type", WindowQtConfig::WIN_TYPE_UNKNOWN); switch (type) { case WindowQtConfig::WIN_TYPE_MAIN: xmlConfigurations.push_back(new MainWindowQtConfig()); break; @@ -107,7 +107,7 @@ static void xml_configuration_load(running_machine &machine, config_type cfg_typ case WindowQtConfig::WIN_TYPE_DEVICE_INFORMATION: xmlConfigurations.push_back(new DeviceInformationWindowQtConfig()); break; default: continue; } - xmlConfigurations.back()->recoverFromXmlNode(wnode); + xmlConfigurations.back()->recoverFromXmlNode(*wnode); } } @@ -123,13 +123,12 @@ static void xml_configuration_save(running_machine &machine, config_type cfg_typ WindowQtConfig* config = xmlConfigurations[i]; // Create an xml node - xml_data_node *debugger_node; - debugger_node = xml_add_child(parentnode, "window", nullptr); + xml_data_node *const debugger_node = parentnode->add_child("window", nullptr); if (debugger_node == nullptr) continue; // Insert the appropriate information - config->addToXmlDataNode(debugger_node); + config->addToXmlDataNode(*debugger_node); } } |