mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-13 14:45:38 +02:00
Problem: use of C-style casts
Solution: use static_cast/reinterpret_cast instead
This commit is contained in:

committed by
Simon Giesecke

parent
a83c57d0bb
commit
cd954e207d
@@ -118,7 +118,8 @@ zmq::session_base_t::session_base_t (class io_thread_t *io_thread_,
|
||||
_wss_hostname (NULL)
|
||||
{
|
||||
if (options_.wss_hostname.length () > 0) {
|
||||
_wss_hostname = (char *) malloc (options_.wss_hostname.length () + 1);
|
||||
_wss_hostname =
|
||||
static_cast<char *> (malloc (options_.wss_hostname.length () + 1));
|
||||
assert (_wss_hostname);
|
||||
strcpy (_wss_hostname, options_.wss_hostname.c_str ());
|
||||
}
|
||||
|
Reference in New Issue
Block a user