mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 13:47:13 +01:00
all news converted to nothrow variant
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <algorithm>
|
||||
#include <new>
|
||||
|
||||
#include "kqueue.hpp"
|
||||
#include "err.hpp"
|
||||
@@ -72,7 +73,7 @@ void zmq::kqueue_t::kevent_delete (fd_t fd_, short filter_)
|
||||
zmq::kqueue_t::handle_t zmq::kqueue_t::add_fd (fd_t fd_,
|
||||
i_poll_events *reactor_)
|
||||
{
|
||||
poll_entry_t *pe = new poll_entry_t;
|
||||
poll_entry_t *pe = new (std::nothrow) poll_entry_t;
|
||||
zmq_assert (pe != NULL);
|
||||
|
||||
pe->fd = fd_;
|
||||
|
||||
Reference in New Issue
Block a user