mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-19 07:47:09 +02:00
Make the Object(bool) an explicit constructor
It prevents from memory leaks made by clients of `Poco::JSON::Object`. The problem has been described better in the GH issue #1335. Issue: https://github.com/pocoproject/poco/issues/1335
This commit is contained in:
parent
38acb93a39
commit
fc40e89969
@ -67,7 +67,7 @@ public:
|
|||||||
typedef ValueMap::iterator Iterator;
|
typedef ValueMap::iterator Iterator;
|
||||||
typedef ValueMap::const_iterator ConstIterator;
|
typedef ValueMap::const_iterator ConstIterator;
|
||||||
|
|
||||||
Object(bool preserveInsertionOrder = false);
|
explicit Object(bool preserveInsertionOrder = false);
|
||||||
/// Default constructor. If preserveInsertionOrder, object
|
/// Default constructor. If preserveInsertionOrder, object
|
||||||
/// will preserve the items insertion order. Otherwise, items
|
/// will preserve the items insertion order. Otherwise, items
|
||||||
/// will be sorted by keys.
|
/// will be sorted by keys.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user