]> OCCT Git - occt.git/commitdiff
0027794: A danger in the 'NCollection_Vector' initializing constructor
authorabv <abv@opencascade.com>
Mon, 26 Sep 2016 07:32:06 +0000 (10:32 +0300)
committerkgv <kgv@opencascade.com>
Fri, 30 Sep 2016 08:17:15 +0000 (11:17 +0300)
Constructor of NCollection_Vector is now declared as explicit.

src/NCollection/NCollection_Vector.hxx

index e7b89df5c289a93353089a9ce693ac0ff33c55af..410d4db5650f7e922954bc981eb3f4caf14081c4 100755 (executable)
@@ -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)
   {}