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

Foundation Classes - Separate map's prime declaration #211

Refactor TCollection to use NCollection_Primes and remove obsolete TCollection.cxx
New prime declaration now will be more clear to use.
This commit is contained in:
dpasukhi
2024-12-26 22:33:34 +00:00
parent ca688cfac3
commit 1b4bb62150
10 changed files with 108 additions and 96 deletions

View File

@@ -16,7 +16,7 @@
#include <TColStd_PackedMapOfInteger.hxx>
#include <NCollection_Array1.hxx>
#include <TCollection.hxx>
#include <NCollection_Primes.hxx>
namespace
{
@@ -153,7 +153,7 @@ TColStd_PackedMapOfInteger& TColStd_PackedMapOfInteger::Assign
void TColStd_PackedMapOfInteger::ReSize (const Standard_Integer theNbBuckets)
{
Standard_Integer aNewBuck = TCollection::NextPrimeForMap (theNbBuckets);
Standard_Integer aNewBuck = NCollection_Primes::NextPrimeForMap (theNbBuckets);
if (aNewBuck <= myNbBuckets)
{
if (!IsEmpty())