We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b638e6 + 2e5dcce commit d79533cCopy full SHA for d79533c
include/rapidjson/schema.h
@@ -1860,7 +1860,12 @@ class GenericSchemaValidator :
1860
1861
//! Gets the JSON pointer pointed to the invalid value.
1862
PointerType GetInvalidDocumentPointer() const {
1863
- return documentStack_.Empty() ? PointerType() : PointerType(documentStack_.template Bottom<Ch>(), documentStack_.GetSize() / sizeof(Ch));
+ if (documentStack_.Empty()) {
1864
+ return PointerType();
1865
+ }
1866
+ else {
1867
+ return PointerType(documentStack_.template Bottom<Ch>(), documentStack_.GetSize() / sizeof(Ch));
1868
1869
}
1870
1871
void NotMultipleOf(int64_t actual, const SValue& expected) {
0 commit comments