mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +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:
parent
0d5880e11a
commit
3a5a656c15
@ -152,7 +152,7 @@ public:
|
|||||||
public: //! @name public methods
|
public: //! @name public methods
|
||||||
|
|
||||||
//! Constructor
|
//! Constructor
|
||||||
NCollection_Vector (const Standard_Integer theIncrement = 256,
|
explicit NCollection_Vector (const Standard_Integer theIncrement = 256,
|
||||||
const Handle(NCollection_BaseAllocator)& theAlloc = NULL) :
|
const Handle(NCollection_BaseAllocator)& theAlloc = NULL) :
|
||||||
NCollection_BaseVector (theAlloc, initMemBlocks, sizeof(TheItemType), theIncrement)
|
NCollection_BaseVector (theAlloc, initMemBlocks, sizeof(TheItemType), theIncrement)
|
||||||
{}
|
{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user