EgtGeomKernel :

- piccole mdofiche poco più che estetiche.
This commit is contained in:
Dario Sassi
2025-01-20 08:30:39 +01:00
parent b5a2490fd4
commit b709776f5f
31 changed files with 131 additions and 130 deletions
+2 -2
View File
@@ -571,7 +571,7 @@ HashGrids1d::Update( void)
// Salvo stato di precedente attivazione delle griglie
bool bGridActivePrev = m_bGridActive ;
// Inseriamo gli oggetti presenti nel vettore m_objsToAdd
if ( m_objsToAdd.size() > 0 ) {
if ( ! m_objsToAdd.empty()) {
for ( auto pObj : m_objsToAdd) {
if ( m_bGridActive)
addGrid( *pObj) ;
@@ -636,7 +636,7 @@ HashGrids1d::Find( const BBox3d& b3Test, INTVECTOR& vnIds) const
sort( vnIds.begin(), vnIds.end()) ;
vnIds.erase( unique( vnIds.begin(), vnIds.end()), vnIds.end()) ;
return ( vnIds.size() > 0) ;
return ( ! vnIds.empty()) ;
}
//----------------------------------------------------------------------------