Commit d6871c3f authored by Milo Yip's avatar Milo Yip

Fix warnings

parent eb7d02b5
...@@ -86,6 +86,7 @@ public: ...@@ -86,6 +86,7 @@ public:
template <typename Encoding> template <typename Encoding>
class ISchemaValidatorFactory { class ISchemaValidatorFactory {
public: public:
virtual ~ISchemaValidatorFactory() {}
virtual ISchemaValidator<Encoding>* CreateSchemaValidator(const BaseSchema<Encoding>& root) = 0; virtual ISchemaValidator<Encoding>* CreateSchemaValidator(const BaseSchema<Encoding>& root) = 0;
}; };
...@@ -309,7 +310,8 @@ public: ...@@ -309,7 +310,8 @@ public:
typedef SchemaValidationContext<Encoding> Context; typedef SchemaValidationContext<Encoding> Context;
template <typename ValueType> 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()); RAPIDJSON_ASSERT(type.IsArray());
for (typename ValueType::ConstValueIterator itr = type.Begin(); itr != type.End(); ++itr) { for (typename ValueType::ConstValueIterator itr = type.Begin(); itr != type.End(); ++itr) {
if (itr->IsString()) { if (itr->IsString()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment