Skip to content

Commit cabc3d5

Browse files
author
Steve Hanson
committed
merge
2 parents 7698b3c + b1a4d91 commit cabc3d5

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

include/rapidjson/document.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,7 @@ class GenericValue {
10831083
*/
10841084
template <typename T> RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue<T>), (bool)) operator!=(const T& rhs) const { return !(*this == rhs); }
10851085

1086+
#ifndef __cpp_lib_three_way_comparison
10861087
//! Equal-to operator with arbitrary types (symmetric version)
10871088
/*! \return (rhs == lhs)
10881089
*/
@@ -1093,6 +1094,7 @@ class GenericValue {
10931094
*/
10941095
template <typename T> friend RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue<T>), (bool)) operator!=(const T& lhs, const GenericValue& rhs) { return !(rhs == lhs); }
10951096
//@}
1097+
#endif
10961098

10971099
//!@name Type
10981100
//@{

include/rapidjson/schema.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,12 @@ class Schema {
530530
AssignIfExist(allOf_, *schemaDocument, p, value, GetAllOfString(), document);
531531
AssignIfExist(anyOf_, *schemaDocument, p, value, GetAnyOfString(), document);
532532
AssignIfExist(oneOf_, *schemaDocument, p, value, GetOneOfString(), document);
533-
}
534533

535-
if (const ValueType* v = GetMember(value, GetNotString())) {
536-
schemaDocument->CreateSchema(&not_, p.Append(GetNotString(), allocator_), *v, document, id_);
537-
notValidatorIndex_ = validatorCount_;
538-
validatorCount_++;
534+
if (const ValueType* v = GetMember(value, GetNotString())) {
535+
schemaDocument->CreateSchema(&not_, p.Append(GetNotString(), allocator_), *v, document, id_);
536+
notValidatorIndex_ = validatorCount_;
537+
validatorCount_++;
538+
}
539539
}
540540

541541
// Object
@@ -983,7 +983,7 @@ class Schema {
983983
}
984984

985985
if (additionalPropertiesSchema_) {
986-
if (additionalPropertiesSchema_ && context.patternPropertiesSchemaCount > 0) {
986+
if (context.patternPropertiesSchemaCount > 0) {
987987
context.patternPropertiesSchemas[context.patternPropertiesSchemaCount++] = additionalPropertiesSchema_;
988988
context.valueSchema = typeless_;
989989
context.valuePatternValidatorType = Context::kPatternValidatorWithAdditionalProperty;

0 commit comments

Comments
 (0)