1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026593: Coding rules - revert compatibility of NCollection_CellFilter constructor with old code

Restored old constructor and old behavior where possible.

Minor correction.
This commit is contained in:
aml
2015-09-03 15:05:34 +03:00
committed by bugmaster
parent 876ca54f0a
commit a7653f4f55
7 changed files with 18 additions and 8 deletions

View File

@@ -129,6 +129,7 @@ public:
//! By default cell size is 0, which is invalid; thus if default
//! constructor is used, the tool must be initialized later with
//! appropriate cell size by call to Reset()
//! Constructor when dimension count is unknown at compilation time.
NCollection_CellFilter (const Standard_Integer theDim,
const Standard_Real theCellSize = 0,
const Handle(NCollection_IncAllocator)& theAlloc = 0)
@@ -138,6 +139,15 @@ public:
Reset (theCellSize, theAlloc);
}
//! Constructor when dimenstion count is known at compilation time.
NCollection_CellFilter (const Standard_Real theCellSize = 0,
const Handle(NCollection_IncAllocator)& theAlloc = 0)
: myCellSize(0, Inspector::Dimension - 1)
{
myDim = Inspector::Dimension;
Reset (theCellSize, theAlloc);
}
//! Clear the data structures, set new cell size and allocator
void Reset (Standard_Real theCellSize,
const Handle(NCollection_IncAllocator)& theAlloc=0)