From e2a6b7c8d29a674504f80b7948a71c4a36af4ad0 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Mon, 21 Aug 2017 16:07:39 +0200 Subject: serialize: use a temporary for SerializeException Exception must always use temporary instead of global copied exception instances, it's not recommended and should have undefined issues --- src/util/serialize.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/util/serialize.cpp') diff --git a/src/util/serialize.cpp b/src/util/serialize.cpp index 49db9cf85..a272d82ee 100644 --- a/src/util/serialize.cpp +++ b/src/util/serialize.cpp @@ -28,8 +28,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include -SerializationError eof_ser_err("Attempted read past end of data"); - //// //// BufReader //// -- cgit v1.2.3