diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-14 12:23:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-14 12:23:57 +0400 |
commit | 3cfd933d947659c5b7abd8d8521b2ebff312dacc (patch) | |
tree | 783e133ea40372fc35b42c2c0617c6d5af835147 /source/blender/compositor/operations/COM_WriteBufferOperation.cpp | |
parent | a90b8ebe48a767b95b9c867518b9b60f9624a5d2 (diff) |
code cleanup: correct unsigned int in string formatting and use empty() checks for vectors.
Diffstat (limited to 'source/blender/compositor/operations/COM_WriteBufferOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_WriteBufferOperation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_WriteBufferOperation.cpp b/source/blender/compositor/operations/COM_WriteBufferOperation.cpp index cf462607936..c73cb3ae325 100644 --- a/source/blender/compositor/operations/COM_WriteBufferOperation.cpp +++ b/source/blender/compositor/operations/COM_WriteBufferOperation.cpp @@ -157,14 +157,14 @@ void WriteBufferOperation::executeOpenCLRegion(OpenCLDevice *device, rcti *rect, this->getMemoryProxy()->getBuffer()->copyContentFrom(outputBuffer); // STEP 4 - while (clMemToCleanUp->size() > 0) { + while (!clMemToCleanUp->empty()) { cl_mem mem = clMemToCleanUp->front(); error = clReleaseMemObject(mem); if (error != CL_SUCCESS) { printf("CLERROR[%d]: %s\n", error, clewErrorString(error)); } clMemToCleanUp->pop_front(); } - while (clKernelsToCleanUp->size() > 0) { + while (!clKernelsToCleanUp->empty()) { cl_kernel kernel = clKernelsToCleanUp->front(); error = clReleaseKernel(kernel); if (error != CL_SUCCESS) { printf("CLERROR[%d]: %s\n", error, clewErrorString(error)); } |