fix compile errors

This commit is contained in:
Steve Hanson 2021-02-25 22:51:35 +00:00
parent 892f6e3fd3
commit ad73c032e7
3 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
// The example validates JSON text from stdin with a JSON schema specified in the argument.
#define RAPIDJSON_HAS_STDSTRING 1
#include "rapidjson/error/en.h"
#include "rapidjson/filereadstream.h"
#include "rapidjson/schema.h"

View File

@ -2118,7 +2118,7 @@ private:
SchemaType* typeless_;
internal::Stack<Allocator> schemaMap_; // Stores created Pointer -> Schemas
internal::Stack<Allocator> schemaRef_; // Stores Pointer(s) from $ref(s) until resolved
SValue uri_;
SValue uri_; // Schema document URI
};
//! GenericSchemaDocument using Value type.

View File

@ -2136,7 +2136,7 @@ public:
virtual const SchemaDocumentType* GetRemoteDocument(const char* uri, SizeType length) {
for (size_t i = 0; i < kCount; i++)
if (typename SchemaDocumentType::SType(uri, length) == sd_[i]->GetURI())
if (typename SchemaDocumentType::SValue(uri, length) == sd_[i]->GetURI())
return sd_[i];
return 0;
}