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

0026584: Eliminate compile warnings obtained by building occt with vc14: declaration of local variable hides class member

Eliminated warning "declaration of variable hides class member"
This commit is contained in:
ski
2015-08-18 14:47:04 +03:00
committed by bugmaster
parent 1dfe71a62b
commit 747f90db8a
2 changed files with 13 additions and 13 deletions

View File

@@ -291,8 +291,8 @@ protected:
//! Assignment operator: ensure that list is not deleted twice
void operator = (const Cell& theOther)
{
Standard_Integer myDim = Standard_Integer(theOther.index.Size());
for(Standard_Integer anIdx = 0; anIdx < myDim; anIdx++)
Standard_Integer aDim = Standard_Integer(theOther.index.Size());
for(Standard_Integer anIdx = 0; anIdx < aDim; anIdx++)
index[anIdx] = theOther.index[anIdx];
Objects = theOther.Objects;
@@ -311,8 +311,8 @@ protected:
//! Compare cell with other one
Standard_Boolean IsEqual (const Cell& theOther) const
{
Standard_Integer myDim = Standard_Integer(theOther.index.Size());
for (int i=0; i < myDim; i++)
Standard_Integer aDim = Standard_Integer(theOther.index.Size());
for (int i=0; i < aDim; i++)
if ( index[i] != theOther.index[i] ) return Standard_False;
return Standard_True;
}
@@ -321,10 +321,10 @@ protected:
Standard_Integer HashCode (const Standard_Integer theUpper) const
{
// number of bits per each dimension in the hash code
Standard_Integer myDim = Standard_Integer(index.Size());
const Standard_Size aShiftBits = (BITS(long)-1) / myDim;
Standard_Integer aDim = Standard_Integer(index.Size());
const Standard_Size aShiftBits = (BITS(long)-1) / aDim;
long aCode=0;
for (int i=0; i < myDim; i++)
for (int i=0; i < aDim; i++)
aCode = ( aCode << aShiftBits ) ^ index[i];
return (unsigned)aCode % theUpper;
}