comparison 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
comparison
equal deleted inserted replaced
1581:ad5f892c0c4d 1582:70e172e6cc59
89 89
90 #endif 90 #endif
91 91
92 OSCQueue::OSCQueue() : 92 OSCQueue::OSCQueue() :
93 #ifdef HAVE_LIBLO 93 #ifdef HAVE_LIBLO
94 m_thread(0), 94 m_thread(nullptr),
95 #endif 95 #endif
96 m_buffer(OSC_MESSAGE_QUEUE_SIZE) 96 m_buffer(OSC_MESSAGE_QUEUE_SIZE)
97 { 97 {
98 Profiler profiler("OSCQueue::OSCQueue"); 98 Profiler profiler("OSCQueue::OSCQueue");
99 99
100 #ifdef HAVE_LIBLO 100 #ifdef HAVE_LIBLO
101 m_thread = lo_server_thread_new(NULL, oscError); 101 m_thread = lo_server_thread_new(nullptr, oscError);
102 102
103 lo_server_thread_add_method(m_thread, NULL, NULL, 103 lo_server_thread_add_method(m_thread, nullptr, nullptr,
104 oscMessageHandler, this); 104 oscMessageHandler, this);
105 105
106 lo_server_thread_start(m_thread); 106 lo_server_thread_start(m_thread);
107 107
108 cout << "OSCQueue::OSCQueue: Base OSC URL is " 108 cout << "OSCQueue::OSCQueue: Base OSC URL is "
125 125
126 bool 126 bool
127 OSCQueue::isOK() const 127 OSCQueue::isOK() const
128 { 128 {
129 #ifdef HAVE_LIBLO 129 #ifdef HAVE_LIBLO
130 return (m_thread != 0); 130 return (m_thread != nullptr);
131 #else 131 #else
132 return false; 132 return false;
133 #endif 133 #endif
134 } 134 }
135 135