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/session.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/session.cpp') diff --git a/src/session.cpp b/src/session.cpp index cbcc883..37f2720 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -17,6 +17,8 @@ along with this program. If not, see . */ +#include + #include "session.hpp" #include "i_engine.hpp" #include "err.hpp" @@ -157,14 +159,16 @@ void zmq::session_t::process_plug () pipe_t *outbound = NULL; if (options.requires_out) { - inbound = new pipe_t (this, owner, options.hwm, options.lwm); + inbound = new (std::nothrow) pipe_t (this, owner, + options.hwm, options.lwm); zmq_assert (inbound); in_pipe = &inbound->reader; in_pipe->set_endpoint (this); } if (options.requires_in) { - outbound = new pipe_t (owner, this, options.hwm, options.lwm); + outbound = new (std::nothrow) pipe_t (owner, this, + options.hwm, options.lwm); zmq_assert (outbound); out_pipe = &outbound->writer; out_pipe->set_endpoint (this); -- cgit v1.2.3