From 89c5e1f681107b6d9f8ba7f761c388d1e2052fe4 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 24 Apr 2016 12:57:58 +0200 Subject: Various cleanups suggested by static analyzer (nw) --- src/osd/modules/debugger/qt/memorywindow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/osd/modules/debugger/qt/memorywindow.cpp') diff --git a/src/osd/modules/debugger/qt/memorywindow.cpp b/src/osd/modules/debugger/qt/memorywindow.cpp index 7b86740fe51..9d10dbb5024 100644 --- a/src/osd/modules/debugger/qt/memorywindow.cpp +++ b/src/osd/modules/debugger/qt/memorywindow.cpp @@ -19,11 +19,11 @@ MemoryWindow::MemoryWindow(running_machine* machine, QWidget* parent) : - WindowQt(machine, NULL) + WindowQt(machine, nullptr) { setWindowTitle("Debug: Memory View"); - if (parent != NULL) + if (parent != nullptr) { QPoint parentPos = parent->pos(); setGeometry(parentPos.x()+100, parentPos.y()+100, 800, 400); @@ -278,7 +278,7 @@ void MemoryWindow::decreaseBytesPerLine(bool checked) void MemoryWindow::populateComboBox() { - if (m_memTable == NULL) + if (m_memTable == nullptr) return; m_memoryComboBox->clear(); @@ -312,7 +312,7 @@ QAction* MemoryWindow::dataFormatMenuItem(const QString& itemName) return actions[j]; } } - return NULL; + return nullptr; } @@ -357,7 +357,7 @@ void DebuggerMemView::mousePressEvent(QMouseEvent* event) { // TODO: You can specify a box that the tooltip stays alive within - might be good? const QString addressAndPc = QString("Address %1 written at PC=%2").arg(address, 2, 16).arg(pc, 2, 16); - QToolTip::showText(QCursor::pos(), addressAndPc, NULL); + QToolTip::showText(QCursor::pos(), addressAndPc, nullptr); // Copy the PC into the clipboard as well QClipboard *clipboard = QApplication::clipboard(); @@ -365,7 +365,7 @@ void DebuggerMemView::mousePressEvent(QMouseEvent* event) } else { - QToolTip::showText(QCursor::pos(), "UNKNOWN PC", NULL); + QToolTip::showText(QCursor::pos(), "UNKNOWN PC", nullptr); } } -- cgit v1.2.3-70-g09d2