@@ -33,7 +33,7 @@ Object::Object(int options):
3333
3434Object::Object (const Object& other) : _values(other._values),
3535 _preserveInsOrder (other._preserveInsOrder),
36- _escapeUnicode(other._escapeUnicode),
36+ _escapeUnicode(other._escapeUnicode.load() ),
3737 _pStruct(!other._modified ? other._pStruct : 0 ),
3838 _modified(other._modified)
3939{
@@ -48,7 +48,7 @@ Object::Object(Object&& other) :
4848 _values(std::move(other._values)),
4949 _keys(std::move(other._keys)),
5050 _preserveInsOrder(other._preserveInsOrder),
51- _escapeUnicode(other._escapeUnicode),
51+ _escapeUnicode(other._escapeUnicode.load() ),
5252 _pStruct(!other._modified ? other._pStruct : 0 ),
5353 _modified(other._modified)
5454{
@@ -63,7 +63,7 @@ Object &Object::operator= (Object &&other)
6363 _values = other._values ;
6464 _preserveInsOrder = other._preserveInsOrder ;
6565 syncKeys (other._keys );
66- _escapeUnicode = other._escapeUnicode ;
66+ _escapeUnicode = other._escapeUnicode . load () ;
6767 _pStruct = !other._modified ? other._pStruct : 0 ;
6868 _modified = other._modified ;
6969 other.clear ();
@@ -87,7 +87,7 @@ Object &Object::operator= (const Object &other)
8787 _values = other._values ;
8888 _keys = other._keys ;
8989 _preserveInsOrder = other._preserveInsOrder ;
90- _escapeUnicode = other._escapeUnicode ;
90+ _escapeUnicode = other._escapeUnicode . load () ;
9191 _pStruct = !other._modified ? other._pStruct : 0 ;
9292 _modified = other._modified ;
9393 }
0 commit comments