From 37a636d929f8c99d11bd8cc6f745580c6ecc6fbb Mon Sep 17 00:00:00 2001 From: Willi Goesgens Date: Wed, 20 Aug 2014 16:56:52 +0200 Subject: [PATCH] Add deleted constructor to avoid the compiler falling through to the bool constructor in case of missuse. --- lib/Basics/JsonHelper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Basics/JsonHelper.h b/lib/Basics/JsonHelper.h index 492a9b1e96..607e80e204 100644 --- a/lib/Basics/JsonHelper.h +++ b/lib/Basics/JsonHelper.h @@ -486,6 +486,8 @@ namespace triagens { : _zone(z), _json(j), _autofree(autofree) { } + explicit Json (TRI_json_t* j) = delete; + //////////////////////////////////////////////////////////////////////////////// /// @brief "copy" constructor, note that in the AUTOFREE case this steals /// the structure from j to allow returning Json objects by value without