mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: checkIndex for bitSet, PackedList only on FULLDEBUG (#1235)
This commit is contained in:
committed by
Andrew Heather
parent
1a35a3ef0f
commit
ef1df59fcf
@ -716,10 +716,9 @@ template<unsigned Width>
|
||||
inline typename Foam::PackedList<Width>::reference
|
||||
Foam::PackedList<Width>::operator[](const label i)
|
||||
{
|
||||
// Leave enabled during testing period (MAR-2018)
|
||||
// #ifdef FULLDEBUG
|
||||
#ifdef FULLDEBUG
|
||||
checkIndex(i);
|
||||
// #endif
|
||||
#endif
|
||||
return reference(this, i);
|
||||
}
|
||||
|
||||
|
||||
@ -635,10 +635,9 @@ inline unsigned int Foam::bitSet::operator[](const label i) const
|
||||
|
||||
inline Foam::bitSet::reference Foam::bitSet::operator[](const label i)
|
||||
{
|
||||
// Leave enabled during testing period (MAR-2018) ... and perhaps later too
|
||||
// #ifdef FULLDEBUG
|
||||
#ifdef FULLDEBUG
|
||||
checkIndex(i);
|
||||
// #endif
|
||||
#endif
|
||||
return reference(this, i);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user