summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-10 19:17:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-10 19:17:47 +0200
commit6519665576343f8a6f6d3bf2ccc57212ff4e2a59 (patch)
tree0ebefe846b7557f9358adcb594f1a52954c89f4e
parent98dd0f2bb5801f974374ef341037e094e4275cbb (diff)
loplugin:bodynotinblock
Change-Id: Ia403e6c6c6747479adfc5d77b1306d9383b3e706
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 5f6b4ff8784d..07900adc729f 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -411,7 +411,7 @@ size_t DynamicKernelStringArgument::Marshal(cl_kernel k, int argno, int, cl_prog
else
{
if (nStrings == 0)
- szHostBuffer = sizeof(cl_int); // a dummy small value
+ szHostBuffer = sizeof(cl_int); // a dummy small value
// Marshal as a buffer of NANs
mpClmem = clCreateBuffer(kEnv.mpkContext,
(cl_mem_flags) CL_MEM_READ_ONLY|CL_MEM_ALLOC_HOST_PTR,
@@ -419,7 +419,7 @@ size_t DynamicKernelStringArgument::Marshal(cl_kernel k, int argno, int, cl_prog
if (CL_SUCCESS != err)
throw OpenCLError(err, __FILE__, __LINE__);
- pHashBuffer = (cl_uint*)clEnqueueMapBuffer(
+ pHashBuffer = (cl_uint*)clEnqueueMapBuffer(
kEnv.mpkCmdQueue, mpClmem, CL_TRUE, CL_MAP_WRITE, 0,
szHostBuffer, 0, NULL, NULL, &err);
if (CL_SUCCESS != err)
@@ -1489,7 +1489,7 @@ public:
ss << "\tint i;\n\t";
ss << "int currentCount0;\n";
for ( unsigned i = 0; i < vSubArguments.size()-1; i++)
- ss << "int currentCount"<<i+1<<";\n";
+ ss << "int currentCount"<<i+1<<";\n";
std::stringstream temp3,temp4;
int outLoopSize = UNROLLING_FACTOR;
if (nCurWindowSize/outLoopSize != 0){