mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-08 02:39:22 +01: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::const_iterator ConstIterator;
|
||||
|
||||
Object(bool preserveInsertionOrder = false);
|
||||
explicit Object(bool preserveInsertionOrder = false);
|
||||
/// Default constructor. If preserveInsertionOrder, object
|
||||
/// will preserve the items insertion order. Otherwise, items
|
||||
/// will be sorted by keys.
|
||||
|
Loading…
Reference in New Issue
Block a user