-// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
TElemInfo
::SetElemNum(TInt theId, TInt theVal)
{
- (*myElemNum)[theId] = theVal;
+ if ( IsElemNum() )
+ (*myElemNum)[theId] = theVal;
}
//---------------------------------------------------------------
TGaussInfo::TLess
::operator()(const TGaussInfo& theLeft, const TGaussInfo& theRight) const
{
- if(!&theLeft) // todo: address of reference can be assumed always non-null by compiler
+ if(!&theLeft) // address of reference can be assumed always non-null by compiler - OK
return true;
- if(!&theRight) // todo: address of reference can be assumed always non-null by compiler
+ if(!&theRight) //address of reference can be assumed always non-null by compiler - OK
return false;
if(theLeft.myGeom != theRight.myGeom)