coverity#1215280 Unchecked dynamic_cast

Change-Id: Ie03bb8a870c544eef656594f5ebab35bc61b9030
This commit is contained in:
Caolán McNamara 2014-05-23 09:50:12 +01:00
parent 505c7801bc
commit 6a2017b9e9

View File

@ -221,9 +221,9 @@ void OpGestep::GenSlidingWindowFunction(
if (pCur->GetType() == formula::svSingleVectorRef)
{
#ifdef ISNAN
const formula::SingleVectorRefToken* pSVR =
dynamic_cast< const formula::SingleVectorRefToken* >(pCur);
ss << " if (gid0 < " << pSVR->GetArrayLength() << ")\n";
const formula::SingleVectorRefToken& rSVR =
dynamic_cast< const formula::SingleVectorRefToken& >(*pCur);
ss << " if (gid0 < " << rSVR.GetArrayLength() << ")\n";
ss << " {\n";
#endif
}