Merge pull request #1336 from hopstertv/gh-1335-make-object-an-explicit-constru

Make the Object(bool) an explicit constructor
This commit is contained in:
Günter Obiltschnig 2016-08-02 13:03:19 +08:00 committed by GitHub
commit 920ab80ef8

View File

@ -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.