ext/flydata/json/json_ext.cpp in flydata-0.5.16 vs ext/flydata/json/json_ext.cpp in flydata-0.5.17

- old
+ new

@@ -260,10 +260,10 @@ add_kv_pair(key, value, ss); } ss << "}"; - std::string str = ss.str(); + const std::string& str = ss.str(); VALUE json = rb_str_new(str.data(), str.size()); int enc = rb_enc_find_index("UTF-8"); rb_enc_associate_index(json, enc); return json;