From 6a2017b9e9c17a1b64ea0c6770cbea2008c32f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 23 May 2014 09:50:12 +0100 Subject: [PATCH] coverity#1215280 Unchecked dynamic_cast Change-Id: Ie03bb8a870c544eef656594f5ebab35bc61b9030 --- sc/source/core/opencl/op_addin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sc/source/core/opencl/op_addin.cxx b/sc/source/core/opencl/op_addin.cxx index 1cc2fe1f027a..e3bc13e44064 100644 --- a/sc/source/core/opencl/op_addin.cxx +++ b/sc/source/core/opencl/op_addin.cxx @@ -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 }