From ab6423330db251d1be421c8c781e1fbc042bd2d7 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Thu, 20 Feb 2014 00:09:26 -0800 Subject: Improved performance of JSON parser --- src/core/basetypes/MCJSONParser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/basetypes/MCJSONParser.cc b/src/core/basetypes/MCJSONParser.cc index adac3570..d9f68204 100644 --- a/src/core/basetypes/MCJSONParser.cc +++ b/src/core/basetypes/MCJSONParser.cc @@ -47,7 +47,7 @@ String * JSONParser::content() void JSONParser::setContent(String * content) { - MC_SAFE_REPLACE_COPY(String, mContent, content); + MC_SAFE_REPLACE_RETAIN(String, mContent, content); } unsigned int JSONParser::position() -- cgit v1.2.3