Skip to content

Commit 0d2580f

Browse files
committed
Fix API constness
Fix Tencent#1014
1 parent a1909a9 commit 0d2580f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rapidjson/document.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ class GenericValue {
13001300
\note This overload is needed to avoid clashes with the generic primitive type AddMember(GenericValue&,T,Allocator&) overload below.
13011301
\note Amortized Constant time complexity.
13021302
*/
1303-
GenericValue& AddMember(GenericValue& name, std::basic_string<Ch>& value, Allocator& allocator) {
1303+
GenericValue& AddMember(GenericValue& name, const std::basic_string<Ch>& value, Allocator& allocator) {
13041304
GenericValue v(value, allocator);
13051305
return AddMember(name, v, allocator);
13061306
}

0 commit comments

Comments
 (0)