diff options
Diffstat (limited to 'src/tests/OverlayTest.cpp')
-rw-r--r-- | src/tests/OverlayTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/OverlayTest.cpp b/src/tests/OverlayTest.cpp index 1665da844..f909af245 100644 --- a/src/tests/OverlayTest.cpp +++ b/src/tests/OverlayTest.cpp @@ -47,12 +47,12 @@ class OverlayWidget : public QWidget { void error(QLocalSocket::LocalSocketError); void update(); public: - OverlayWidget(QWidget *p = NULL); + OverlayWidget(QWidget *p = nullptr); }; OverlayWidget::OverlayWidget(QWidget *p) : QWidget(p) { - qlsSocket = NULL; - smMem = NULL; + qlsSocket = nullptr; + smMem = nullptr; uiWidth = uiHeight = 0; setFocusPolicy(Qt::StrongFocus); @@ -123,10 +123,10 @@ void OverlayWidget::detach() { if (qlsSocket) { qlsSocket->abort(); qlsSocket->deleteLater(); - qlsSocket = NULL; + qlsSocket = nullptr; } if (smMem) { - smMem = NULL; + smMem = nullptr; } } @@ -230,7 +230,7 @@ void OverlayWidget::readyRead() { if (! smMem->data()) { qWarning() << "SHMEM FAIL"; delete smMem; - smMem = NULL; + smMem = nullptr; } else { qWarning() << "SHMEM" << smMem->size(); } |