Mercurial > hg > svcore
diff data/osc/OSCQueue.cpp @ 1582:70e172e6cc59 fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:41 +0000 |
parents | 48e9f538e6e9 |
children | 813dadf7c086 |
line wrap: on
line diff
--- a/data/osc/OSCQueue.cpp Mon Nov 26 13:51:36 2018 +0000 +++ b/data/osc/OSCQueue.cpp Mon Nov 26 14:33:41 2018 +0000 @@ -91,16 +91,16 @@ OSCQueue::OSCQueue() : #ifdef HAVE_LIBLO - m_thread(0), + m_thread(nullptr), #endif m_buffer(OSC_MESSAGE_QUEUE_SIZE) { Profiler profiler("OSCQueue::OSCQueue"); #ifdef HAVE_LIBLO - m_thread = lo_server_thread_new(NULL, oscError); + m_thread = lo_server_thread_new(nullptr, oscError); - lo_server_thread_add_method(m_thread, NULL, NULL, + lo_server_thread_add_method(m_thread, nullptr, nullptr, oscMessageHandler, this); lo_server_thread_start(m_thread); @@ -127,7 +127,7 @@ OSCQueue::isOK() const { #ifdef HAVE_LIBLO - return (m_thread != 0); + return (m_thread != nullptr); #else return false; #endif