From 8aa0908635f255e2d533539d5330b92b62dc88ba Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 15 Dec 2009 23:49:55 +0100 Subject: all news converted to nothrow variant --- src/zmq_listener.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/zmq_listener.cpp') diff --git a/src/zmq_listener.cpp b/src/zmq_listener.cpp index 5d678a2..5c7552b 100644 --- a/src/zmq_listener.cpp +++ b/src/zmq_listener.cpp @@ -17,6 +17,8 @@ along with this program. If not, see . */ +#include + #include "zmq_listener.hpp" #include "zmq_listener_init.hpp" #include "io_thread.hpp" @@ -62,8 +64,8 @@ void zmq::zmq_listener_t::in_event () // Create an init object. io_thread_t *io_thread = choose_io_thread (options.affinity); - zmq_listener_init_t *init = new zmq_listener_init_t (io_thread, owner, - fd, options); + zmq_listener_init_t *init = new (std::nothrow) zmq_listener_init_t ( + io_thread, owner, fd, options); zmq_assert (init); send_plug (init); send_own (owner, init); -- cgit v1.2.3