diff options
Diffstat (limited to 'sc')
-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 } |