diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-12-15 23:49:55 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-12-15 23:49:55 +0100 |
commit | 8aa0908635f255e2d533539d5330b92b62dc88ba (patch) | |
tree | f72f8dc99463cb0e56213dbde735ed585986cbfb /src/session.cpp | |
parent | 2cef05d86976784f4bc1083cb0fa548e267ac132 (diff) |
all news converted to nothrow variant
Diffstat (limited to 'src/session.cpp')
-rw-r--r-- | src/session.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>. */ +#include <new> + #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); |