mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
iosource/threading/input/logging: Replace nulls with nullptr
This commit is contained in:
parent
4ee84b69f2
commit
cb01e098df
27 changed files with 154 additions and 156 deletions
|
@ -172,7 +172,7 @@ bool ReporterMessage::Process()
|
|||
return true;
|
||||
}
|
||||
|
||||
MsgThread::MsgThread() : BasicThread(), queue_in(this, 0), queue_out(0, this)
|
||||
MsgThread::MsgThread() : BasicThread(), queue_in(this, nullptr), queue_out(nullptr, this)
|
||||
{
|
||||
cnt_sent_in = cnt_sent_out = 0;
|
||||
main_finished = false;
|
||||
|
@ -367,7 +367,7 @@ BasicOutputMessage* MsgThread::RetrieveOut()
|
|||
{
|
||||
BasicOutputMessage* msg = queue_out.Get();
|
||||
if ( ! msg )
|
||||
return 0;
|
||||
return nullptr;
|
||||
|
||||
DBG_LOG(DBG_THREADING, "Retrieved '%s' from %s", msg->Name(), Name());
|
||||
|
||||
|
@ -379,7 +379,7 @@ BasicInputMessage* MsgThread::RetrieveIn()
|
|||
BasicInputMessage* msg = queue_in.Get();
|
||||
|
||||
if ( ! msg )
|
||||
return 0;
|
||||
return nullptr;
|
||||
|
||||
#ifdef DEBUG
|
||||
string s = Fmt("Retrieved '%s' in %s", msg->Name(), Name());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue