From 3d3555d373dd0bb40e307ccdb3bebbba60c4ce05 Mon Sep 17 00:00:00 2001 From: miloyip Date: Thu, 7 May 2015 23:37:05 +0800 Subject: [PATCH] Use move semantics for property name --- include/rapidjson/schema.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } } }