mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-14 23:07:59 +02:00
Problem: complex unnecessary ternary expressions
Solution: simplify to comparison against 0
This commit is contained in:
@@ -230,7 +230,7 @@ void zmq::xpub_t::mark_as_matching (pipe_t *pipe_, xpub_t *self_)
|
||||
|
||||
int zmq::xpub_t::xsend (msg_t *msg_)
|
||||
{
|
||||
bool msg_more = msg_->flags () & msg_t::more ? true : false;
|
||||
bool msg_more = (msg_->flags () & msg_t::more) != 0;
|
||||
|
||||
// For the first part of multi-part message, find the matching pipes.
|
||||
if (!more) {
|
||||
|
Reference in New Issue
Block a user