fix compile errors
This commit is contained in:
parent
892f6e3fd3
commit
ad73c032e7
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
// The example validates JSON text from stdin with a JSON schema specified in the argument.
|
// 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/error/en.h"
|
||||||
#include "rapidjson/filereadstream.h"
|
#include "rapidjson/filereadstream.h"
|
||||||
#include "rapidjson/schema.h"
|
#include "rapidjson/schema.h"
|
||||||
|
@ -2118,7 +2118,7 @@ private:
|
|||||||
SchemaType* typeless_;
|
SchemaType* typeless_;
|
||||||
internal::Stack<Allocator> schemaMap_; // Stores created Pointer -> Schemas
|
internal::Stack<Allocator> schemaMap_; // Stores created Pointer -> Schemas
|
||||||
internal::Stack<Allocator> schemaRef_; // Stores Pointer(s) from $ref(s) until resolved
|
internal::Stack<Allocator> schemaRef_; // Stores Pointer(s) from $ref(s) until resolved
|
||||||
SValue uri_;
|
SValue uri_; // Schema document URI
|
||||||
};
|
};
|
||||||
|
|
||||||
//! GenericSchemaDocument using Value type.
|
//! GenericSchemaDocument using Value type.
|
||||||
|
@ -2136,7 +2136,7 @@ public:
|
|||||||
|
|
||||||
virtual const SchemaDocumentType* GetRemoteDocument(const char* uri, SizeType length) {
|
virtual const SchemaDocumentType* GetRemoteDocument(const char* uri, SizeType length) {
|
||||||
for (size_t i = 0; i < kCount; i++)
|
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 sd_[i];
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user