Commit d6871c3f authored by Milo Yip's avatar Milo Yip

Fix warnings

parent eb7d02b5
......@@ -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()) {
......
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