Commit 63423eb6 authored by Oliver Hahm's avatar Oliver Hahm

fix return values

parent e6d7247e
...@@ -515,7 +515,7 @@ struct TypeHelper<ValueType, typename ValueType::Object> { ...@@ -515,7 +515,7 @@ struct TypeHelper<ValueType, typename ValueType::Object> {
static bool Is(const ValueType& v) { return v.IsObject(); } static bool Is(const ValueType& v) { return v.IsObject(); }
static ObjectType Get(ValueType& v) { return v.GetObject(); } static ObjectType Get(ValueType& v) { return v.GetObject(); }
static ValueType& Set(ValueType& v, ObjectType data) { return v = data; } static ValueType& Set(ValueType& v, ObjectType data) { return v = data; }
static ValueType& Set(ValueType& v, ObjectType data, typename ValueType::AllocatorType&) { v = data; } static ValueType& Set(ValueType& v, ObjectType data, typename ValueType::AllocatorType&) { return v = data; }
}; };
template<typename ValueType> template<typename ValueType>
......
...@@ -1789,7 +1789,7 @@ RAPIDJSON_MULTILINEMACRO_END ...@@ -1789,7 +1789,7 @@ RAPIDJSON_MULTILINEMACRO_END
} }
virtual void FreeState(void* p) { virtual void FreeState(void* p) {
return StateAllocator::Free(p); StateAllocator::Free(p);
} }
private: private:
......
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