summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/qt/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger/qt/mainwindow.cpp')
-rw-r--r--src/osd/modules/debugger/qt/mainwindow.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/osd/modules/debugger/qt/mainwindow.cpp b/src/osd/modules/debugger/qt/mainwindow.cpp
index aeca1d20b63..e366ba77247 100644
--- a/src/osd/modules/debugger/qt/mainwindow.cpp
+++ b/src/osd/modules/debugger/qt/mainwindow.cpp
@@ -16,7 +16,7 @@
MainWindow::MainWindow(running_machine* machine, QWidget* parent) :
- WindowQt(machine, NULL),
+ WindowQt(machine, nullptr),
m_historyIndex(0),
m_inputHistory()
{
@@ -92,7 +92,7 @@ MainWindow::MainWindow(running_machine* machine, QWidget* parent) :
// Images menu
//
image_interface_iterator imageIterTest(m_machine->root_device());
- if (imageIterTest.first() != NULL)
+ if (imageIterTest.first() != nullptr)
{
createImagesMenu();
}
@@ -163,7 +163,7 @@ void MainWindow::closeEvent(QCloseEvent* event)
bool MainWindow::eventFilter(QObject* obj, QEvent* event)
{
// Only filter keypresses
- QKeyEvent* keyEvent = NULL;
+ QKeyEvent* keyEvent = nullptr;
if (event->type() == QEvent::KeyPress)
{
keyEvent = static_cast<QKeyEvent*>(event);
@@ -221,7 +221,7 @@ void MainWindow::toggleBreakpointAtCursor(bool changedTo)
// Find an existing breakpoint at this address
INT32 bpindex = -1;
for (device_debug::breakpoint* bp = cpuinfo->breakpoint_first();
- bp != NULL;
+ bp != nullptr;
bp = bp->next())
{
if (address == bp->address())
@@ -258,10 +258,10 @@ void MainWindow::enableBreakpointAtCursor(bool changedTo)
// Find an existing breakpoint at this address
device_debug::breakpoint* bp = cpuinfo->breakpoint_first();
- while ((bp != NULL) && (bp->address() != address))
+ while ((bp != nullptr) && (bp->address() != address))
bp = bp->next();
- if (bp != NULL)
+ if (bp != nullptr)
{
INT32 const bpindex = bp->index();
std::string command = string_format(bp->enabled() ? "bpdisable 0x%X" : "bpenable 0x%X", bpindex);
@@ -346,7 +346,7 @@ void MainWindow::mountImage(bool changedTo)
const int imageIndex = dynamic_cast<QAction*>(sender())->data().toInt();
image_interface_iterator iter(m_machine->root_device());
device_image_interface *img = iter.byindex(imageIndex);
- if (img == NULL)
+ if (img == nullptr)
{
debug_console_printf(*m_machine, "Something is wrong with the mount menu.\n");
refreshAll();
@@ -420,10 +420,10 @@ void MainWindow::dasmViewUpdated()
// Find an existing breakpoint at this address
device_debug::breakpoint* bp = cpuinfo->breakpoint_first();
- while ((bp != NULL) && (bp->address() != address))
+ while ((bp != nullptr) && (bp->address() != address))
bp = bp->next();
- if (bp != NULL)
+ if (bp != nullptr)
{
haveBreakpoint = true;
breakpointEnabled = bp->enabled();