From 18ee219ce753228ad0118c76168b549504e2d505 Mon Sep 17 00:00:00 2001 From: Pavel Pimenov Date: Thu, 9 Oct 2014 09:41:49 +0400 Subject: [PATCH] Fix V815 Decreased performance. Consider replacing the expression 'peer_address = ""' with 'peer_address.clear()'. stream_engine.cpp 99 --- src/stream_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp index 60a269079..920b8acb5 100644 --- a/src/stream_engine.cpp +++ b/src/stream_engine.cpp @@ -96,7 +96,7 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_, int family = get_peer_ip_address (s, peer_address); if (family == 0) - peer_address = ""; + peer_address.clear(); #if defined ZMQ_HAVE_SO_PEERCRED else if (family == PF_UNIX) {