From 18758fa4971c544c1413da0589cb075682d3bee2 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 13 Feb 2018 18:07:58 -0800 Subject: [PATCH] throw new doesn't work javaism... --- src/remote/codec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/codec.cpp b/src/remote/codec.cpp index d252cea..cd45e83 100644 --- a/src/remote/codec.cpp +++ b/src/remote/codec.cpp @@ -337,7 +337,7 @@ void AbstractCodec::processReadSegmented() { " %s:%d: %s, disconnecting...", __FILE__, __LINE__, inetAddressToString(*getLastReadBufferSocketAddress()).c_str()); invalidDataStreamHandler(); - throw new invalid_data_stream_exception( + throw invalid_data_stream_exception( "not-a-first segmented message expected"); }