STYLE: checkIndex for bitSet, PackedList only on FULLDEBUG (#1235)

This commit is contained in:
Mark Olesen
2019-03-13 14:40:38 +01:00
committed by Andrew Heather
parent 1a35a3ef0f
commit ef1df59fcf
2 changed files with 4 additions and 6 deletions

View File

@ -716,10 +716,9 @@ template<unsigned Width>
inline typename Foam::PackedList<Width>::reference inline typename Foam::PackedList<Width>::reference
Foam::PackedList<Width>::operator[](const label i) Foam::PackedList<Width>::operator[](const label i)
{ {
// Leave enabled during testing period (MAR-2018) #ifdef FULLDEBUG
// #ifdef FULLDEBUG
checkIndex(i); checkIndex(i);
// #endif #endif
return reference(this, i); return reference(this, i);
} }

View File

@ -635,10 +635,9 @@ inline unsigned int Foam::bitSet::operator[](const label i) const
inline Foam::bitSet::reference Foam::bitSet::operator[](const label i) 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); checkIndex(i);
// #endif #endif
return reference(this, i); return reference(this, i);
} }