summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/qt/memorywindow.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-04-24 12:57:58 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-04-24 12:58:31 +0200
commit89c5e1f681107b6d9f8ba7f761c388d1e2052fe4 (patch)
treec5ce4530d0c03fa1c04021844272b82b7b7ebcbc /src/osd/modules/debugger/qt/memorywindow.cpp
parentef0968b87042040e1f0e18c84ce804f744f8e23e (diff)
Various cleanups suggested by static analyzer (nw)
Diffstat (limited to 'src/osd/modules/debugger/qt/memorywindow.cpp')
-rw-r--r--src/osd/modules/debugger/qt/memorywindow.cpp12
1 files changed, 6 insertions, 6 deletions
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);
}
}