summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-23 09:50:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-23 14:16:01 +0100
commit6a2017b9e9c17a1b64ea0c6770cbea2008c32f70 (patch)
treef55fa1008612e242feb839235407bb260fb2cf92 /sc
parent505c7801bc660ebf8edb7e1467906f6e2afe3f42 (diff)
coverity#1215280 Unchecked dynamic_cast
Change-Id: Ie03bb8a870c544eef656594f5ebab35bc61b9030
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/opencl/op_addin.cxx6
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
}