Skip to content

Commit ad73c03

Browse files
author
Steve Hanson
committed
fix compile errors
1 parent 892f6e3 commit ad73c03

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

example/schemavalidator/schemavalidator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
// The example validates JSON text from stdin with a JSON schema specified in the argument.
44

5+
#define RAPIDJSON_HAS_STDSTRING 1
6+
57
#include "rapidjson/error/en.h"
68
#include "rapidjson/filereadstream.h"
79
#include "rapidjson/schema.h"

include/rapidjson/schema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,7 @@ class GenericSchemaDocument {
21182118
SchemaType* typeless_;
21192119
internal::Stack<Allocator> schemaMap_; // Stores created Pointer -> Schemas
21202120
internal::Stack<Allocator> schemaRef_; // Stores Pointer(s) from $ref(s) until resolved
2121-
SValue uri_;
2121+
SValue uri_; // Schema document URI
21222122
};
21232123

21242124
//! GenericSchemaDocument using Value type.

test/unittest/schematest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ class RemoteSchemaDocumentProvider : public IGenericRemoteSchemaDocumentProvider
21362136

21372137
virtual const SchemaDocumentType* GetRemoteDocument(const char* uri, SizeType length) {
21382138
for (size_t i = 0; i < kCount; i++)
2139-
if (typename SchemaDocumentType::SType(uri, length) == sd_[i]->GetURI())
2139+
if (typename SchemaDocumentType::SValue(uri, length) == sd_[i]->GetURI())
21402140
return sd_[i];
21412141
return 0;
21422142
}

0 commit comments

Comments
 (0)