diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 09:50:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 14:16:01 +0100 |
commit | 6a2017b9e9c17a1b64ea0c6770cbea2008c32f70 (patch) | |
tree | f55fa1008612e242feb839235407bb260fb2cf92 /sc/source/core/opencl | |
parent | 505c7801bc660ebf8edb7e1467906f6e2afe3f42 (diff) |
coverity#1215280 Unchecked dynamic_cast
Change-Id: Ie03bb8a870c544eef656594f5ebab35bc61b9030
Diffstat (limited to 'sc/source/core/opencl')
-rw-r--r-- | sc/source/core/opencl/op_addin.cxx | 6 |
1 files 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 } |