diff options
author | 2016-04-24 12:57:58 +0200 | |
---|---|---|
committer | 2016-04-24 12:58:31 +0200 | |
commit | 89c5e1f681107b6d9f8ba7f761c388d1e2052fe4 (patch) | |
tree | c5ce4530d0c03fa1c04021844272b82b7b7ebcbc /src/osd/modules/debugger/debugqt.cpp | |
parent | ef0968b87042040e1f0e18c84ce804f744f8e23e (diff) |
Various cleanups suggested by static analyzer (nw)
Diffstat (limited to 'src/osd/modules/debugger/debugqt.cpp')
-rw-r--r-- | src/osd/modules/debugger/debugqt.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/osd/modules/debugger/debugqt.cpp b/src/osd/modules/debugger/debugqt.cpp index ac6c6a9d95c..e9abe538981 100644 --- a/src/osd/modules/debugger/debugqt.cpp +++ b/src/osd/modules/debugger/debugqt.cpp @@ -40,7 +40,7 @@ class debug_qt : public osd_module, public debug_module public: debug_qt() : osd_module(OSD_DEBUG_PROVIDER, "qt"), debug_module(), - m_machine(NULL) + m_machine(nullptr) { } @@ -64,10 +64,10 @@ private: //============================================================ int qtArgc = 0; -char** qtArgv = NULL; +char** qtArgv = nullptr; bool oneShot = true; -static MainWindow* mainQtWindow = NULL; +static MainWindow* mainQtWindow = nullptr; //============================================================ // XML configuration save/load @@ -84,7 +84,7 @@ static void xml_configuration_load(running_machine &machine, config_type cfg_typ return; // Might not have any data - if (parentnode == NULL) + if (parentnode == nullptr) return; for (int i = 0; i < xmlConfigurations.size(); i++) @@ -92,8 +92,8 @@ static void xml_configuration_load(running_machine &machine, config_type cfg_typ xmlConfigurations.clear(); // Configuration load - xml_data_node* wnode = NULL; - for (wnode = xml_get_sibling(parentnode->child, "window"); wnode != NULL; wnode = xml_get_sibling(wnode->next, "window")) + xml_data_node* wnode = nullptr; + for (wnode = xml_get_sibling(parentnode->child, "window"); wnode != nullptr; wnode = xml_get_sibling(wnode->next, "window")) { WindowQtConfig::WindowType type = (WindowQtConfig::WindowType)xml_get_attribute_int(wnode, "type", WindowQtConfig::WIN_TYPE_UNKNOWN); switch (type) @@ -124,8 +124,8 @@ static void xml_configuration_save(running_machine &machine, config_type cfg_typ // Create an xml node xml_data_node *debugger_node; - debugger_node = xml_add_child(parentnode, "window", NULL); - if (debugger_node == NULL) + debugger_node = xml_add_child(parentnode, "window", nullptr); + if (debugger_node == nullptr) continue; // Insert the appropriate information @@ -195,7 +195,7 @@ static void setup_additional_startup_windows(running_machine& machine, std::vect { WindowQtConfig* config = configList[i]; - WindowQt* foo = NULL; + WindowQt* foo = nullptr; switch (config->m_type) { case WindowQtConfig::WIN_TYPE_MEMORY: @@ -246,7 +246,7 @@ bool debug_qt::nativeEventFilter(const QByteArray &eventType, void *message, lon void debug_qt::init_debugger(running_machine &machine) { - if (qApp == NULL) + if (qApp == nullptr) { // If you're starting from scratch, create a new qApp new QApplication(qtArgc, qtArgv); |