diff --git a/include/rapidjson/schema.h b/include/rapidjson/schema.h index 7e6abba7..bb42a3a1 100644 --- a/include/rapidjson/schema.h +++ b/include/rapidjson/schema.h @@ -207,7 +207,7 @@ public: propertyCount_ = allProperties.Size(); properties_ = new Property[propertyCount_]; for (SizeType i = 0; i < propertyCount_; i++) { - properties_[i].name.SetString(allProperties[i].GetString(), allProperties[i].GetStringLength(), allocator_); + properties_[i].name = allProperties[i]; } } }