| 3026 | bool Value::operator!() const { return isNull(); } |
| 3027 | |
| 3028 | void Value::clear() { |
| 3029 | JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue || |
| 3030 | type_ == objectValue, |
| 3031 | "in Json::Value::clear(): requires complex value"); |
| 3032 | switch (type_) { |
| 3033 | case arrayValue: |
| 3034 | case objectValue: |
| 3035 | value_.map_->clear(); |
| 3036 | break; |
| 3037 | default: |
| 3038 | break; |
| 3039 | } |
| 3040 | } |
| 3041 | |
| 3042 | void Value::resize(ArrayIndex newSize) { |
| 3043 | JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue, |
no outgoing calls
no test coverage detected