Files
poco/JSON
Austin Beer 2baa40040c Eliminate extra copies in JSON::Object (#5029)
* Eliminate extra copies in JSON::Object

* fix(JSON/Object): modified flags #5029:

Header file (JSON/include/Poco/JSON/Object.h):

Replaced single _modified flag with two separate flags: _structModified and _ordStructModified
Updated remove() inline function to set both flags
Implementation file (JSON/src/Object.cpp):

Updated all constructors and assignment operators to use both flags
Copy constructor now properly copies both _pStruct and _pOrdStruct based on their respective modified flags
operator const DynamicStruct&() now uses _structModified
operator const OrderedDynamicStruct&() now uses _ordStructModified
set() and clear() methods set both flags to true

---------

Co-authored-by: Alex Fabijanic <alex@pocoproject.org>
2025-12-09 02:06:04 +01:00
..
2025-12-09 02:04:50 +01:00
2025-12-09 02:04:50 +01:00
2012-05-09 19:47:36 +00:00