From: aml Date: Wed, 24 Feb 2016 10:44:57 +0000 (+0300) Subject: Old signature of method "reset" is restored to avoid problems with backward compatibi... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=68d8f06a04e840123a45bc9991ba88c234307392;p=occt-copy.git Old signature of method "reset" is restored to avoid problems with backward compatibility. --- diff --git a/src/NCollection/NCollection_CellFilter.hxx b/src/NCollection/NCollection_CellFilter.hxx index 9c6dfac4d1..b2c1a4e414 100644 --- a/src/NCollection/NCollection_CellFilter.hxx +++ b/src/NCollection/NCollection_CellFilter.hxx @@ -164,6 +164,15 @@ public: myCellSize = theCellSize; resetAllocator ( theAlloc ); } + + //! Clear the data structures and set new cell sizes and allocator + void Reset (Standard_Real theCellSize[], + const Handle(NCollection_IncAllocator)& theAlloc=0) + { + for (int i=0; i < mySize; i++) + myCellSize[i] = theCellSize[i]; + resetAllocator ( theAlloc ); + } //! Adds a target object for further search at a point (into only one cell) void Add (const Target& theTarget, const Point &thePnt)