From b571c4909b64b39a264d58185d568d67109294f5 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Wed, 15 Apr 2020 15:08:31 +0200 Subject: [PATCH] Use nullptr instead of NULL --- core-writer/test/test_UdpRecvModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core-writer/test/test_UdpRecvModule.cpp b/core-writer/test/test_UdpRecvModule.cpp index 578a6d4..dce4167 100644 --- a/core-writer/test/test_UdpRecvModule.cpp +++ b/core-writer/test/test_UdpRecvModule.cpp @@ -65,7 +65,7 @@ TEST(UdpRecvModule, simple_recv) auto result = ring_buffer.read(); // The slot should be reserved, but not yet committed. // Only with next frame packet commit. - ASSERT_TRUE(result.first == NULL); + ASSERT_TRUE(result.first == nullptr); // When packet from new frame is received, the previous frame should be // committed to the ring buffer. @@ -86,7 +86,7 @@ TEST(UdpRecvModule, simple_recv) ASSERT_FALSE(ring_buffer.is_empty()); auto result2 = ring_buffer.read(); - ASSERT_TRUE(result2.first != NULL); + ASSERT_TRUE(result2.first != nullptr); ::close(send_socket_fd); }