From 776611c2706be52a28bb6157668ec46616725de6 Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 28 Dec 2014 22:59:11 +0100 Subject: [PATCH] + another check --- src/JSON.cc | 1 + test/JSON_unit.cc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/JSON.cc b/src/JSON.cc index 07bb729d..55d86086 100644 --- a/src/JSON.cc +++ b/src/JSON.cc @@ -1672,6 +1672,7 @@ bool JSON::const_iterator::operator==(const JSON::const_iterator& o) const } default: { + // not sure if used break; } } diff --git a/test/JSON_unit.cc b/test/JSON_unit.cc index 6513d6bd..92e5013d 100644 --- a/test/JSON_unit.cc +++ b/test/JSON_unit.cc @@ -1425,6 +1425,8 @@ TEST_CASE("Iterators") JSON::const_iterator i4 = j_object.begin(); ++i4; + JSON::iterator i41 = j_object.begin(); + CHECK((i4 == i41) == false); JSON::const_iterator i5(i4); JSON::const_iterator i6; i6 = i5;