mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027794: A danger in the 'NCollection_Vector' initializing constructor
Constructor of NCollection_Vector is now declared as explicit.
This commit is contained in:
@@ -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)
|
||||
{}
|
||||
|
||||
|
Reference in New Issue
Block a user