mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-10 03:29:59 +01:00
Fix warnings
This commit is contained in:
parent
eb7d02b51d
commit
d6871c3f15
@ -86,6 +86,7 @@ public:
|
||||
template <typename Encoding>
|
||||
class ISchemaValidatorFactory {
|
||||
public:
|
||||
virtual ~ISchemaValidatorFactory() {}
|
||||
virtual ISchemaValidator<Encoding>* CreateSchemaValidator(const BaseSchema<Encoding>& root) = 0;
|
||||
};
|
||||
|
||||
@ -309,7 +310,8 @@ public:
|
||||
typedef SchemaValidationContext<Encoding> Context;
|
||||
|
||||
template <typename ValueType>
|
||||
MultiTypeSchema(const ValueType& value, const ValueType& type) : BaseSchema<Encoding>(), typedSchemas_() {
|
||||
MultiTypeSchema(const ValueType& value, const ValueType& type) : BaseSchema<Encoding>() {
|
||||
std::memset(typedSchemas_, 0, sizeof(typedSchemas_));
|
||||
RAPIDJSON_ASSERT(type.IsArray());
|
||||
for (typename ValueType::ConstValueIterator itr = type.Begin(); itr != type.End(); ++itr) {
|
||||
if (itr->IsString()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user