mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 13:21:10 +01:00
Problem: ptr/ref parameters and local variables are non-const but never modified
Solution: add const
This commit is contained in:
@@ -75,7 +75,7 @@ int zmq::tcp_address_t::resolve (const char *name_, bool local_, bool ipv6_)
|
||||
// Test the ';' to know if we have a source address in name_
|
||||
const char *src_delimiter = strrchr (name_, ';');
|
||||
if (src_delimiter) {
|
||||
std::string src_name (name_, src_delimiter - name_);
|
||||
const std::string src_name (name_, src_delimiter - name_);
|
||||
|
||||
ip_resolver_options_t src_resolver_opts;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user