From: abv Date: Mon, 26 Sep 2016 07:32:06 +0000 (+0300) Subject: 0027794: A danger in the 'NCollection_Vector' initializing constructor X-Git-Tag: V7_1_0_beta~113 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=3a5a656c15e547f528178ebad60fefffc69275bc;p=occt.git 0027794: A danger in the 'NCollection_Vector' initializing constructor Constructor of NCollection_Vector is now declared as explicit. --- diff --git a/src/NCollection/NCollection_Vector.hxx b/src/NCollection/NCollection_Vector.hxx index e7b89df5c2..410d4db565 100755 --- a/src/NCollection/NCollection_Vector.hxx +++ b/src/NCollection/NCollection_Vector.hxx @@ -152,8 +152,8 @@ public: public: //! @name public methods //! Constructor - NCollection_Vector (const Standard_Integer theIncrement = 256, - const Handle(NCollection_BaseAllocator)& theAlloc = NULL) : + explicit NCollection_Vector (const Standard_Integer theIncrement = 256, + const Handle(NCollection_BaseAllocator)& theAlloc = NULL) : NCollection_BaseVector (theAlloc, initMemBlocks, sizeof(TheItemType), theIncrement) {}