Skip to content

Commit 4a61f4f

Browse files
committed
remove Json::Value::operator!()
operator! is no longer necessary because of explicit operator bool()
1 parent 21b6309 commit 4a61f4f

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

include/json/value.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,6 @@ Json::Value obj_value(Json::objectValue); // {}
344344
/// otherwise, false.
345345
bool empty() const;
346346

347-
/// Return isNull()
348-
bool operator!() const;
349-
350347
/** \brief Return ! isNull();
351348
*
352349
* Example of usage:

src/lib_json/json_value.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,6 @@ bool Value::empty() const {
881881
return false;
882882
}
883883

884-
bool Value::operator!() const { return isNull(); }
885-
886884
Value::operator bool() const { return ! isNull(); }
887885

888886
void Value::clear() {

0 commit comments

Comments
 (0)