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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user