mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-29 00:32:34 +08:00
Fix V815 Decreased performance. Consider replacing the expression 'options.socks_proxy_address != ""' with '!options.socks_proxy_address.empty()'. session_base.cpp 497
This commit is contained in:
parent
0b541b789a
commit
0e3d40c806
@ -494,7 +494,7 @@ void zmq::session_base_t::start_connecting (bool wait_)
|
||||
// Create the connecter object.
|
||||
|
||||
if (addr->protocol == "tcp") {
|
||||
if (options.socks_proxy_address != "") {
|
||||
if (!options.socks_proxy_address.empty()) {
|
||||
address_t *proxy_address = new (std::nothrow)
|
||||
address_t ("tcp", options.socks_proxy_address);
|
||||
alloc_assert (proxy_address);
|
||||
|
Loading…
x
Reference in New Issue
Block a user