We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a2ee7db + 65ab262 commit a06411dCopy full SHA for a06411d
1 file changed
ObjCryst/CrystVector/CrystVector.cpp
@@ -182,7 +182,7 @@ template<class T> void CrystVector<T>::resize(const long newNbElements)
182
if(mNumElements==newNbElements) return;
183
VFN_DEBUG_MESSAGE("CrystVector<T>::resize():("<<mNumElements<<"->"
184
<<newNbElements<<").",0)
185
- if((mIsAreference==false) && (mNumElements != 0))
+ if(!mIsAreference)
186
{
187
delete[] mpData ;
188
}
0 commit comments