Problem: complex unnecessary ternary expressions

Solution: simplify to comparison against 0
This commit is contained in:
Simon Giesecke
2018-05-25 22:59:13 +02:00
parent 1432011277
commit eacc805646
9 changed files with 13 additions and 13 deletions

View File

@@ -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) {