mirror of
https://github.com/pocoproject/poco.git
synced 2025-12-31 23:50:56 +01:00
* 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>