mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 12:18:04 +01:00
Problem: ptr/ref parameters and local variables are non-const but never modified
Solution: add const
This commit is contained in:
@@ -294,7 +294,7 @@ int zmq::msg_t::copy (msg_t &src_)
|
||||
return -1;
|
||||
}
|
||||
|
||||
int rc = close ();
|
||||
const int rc = close ();
|
||||
if (unlikely (rc < 0))
|
||||
return rc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user