summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-11 14:32:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-11 14:32:07 +0200
commitf541b99855bd70781f8d7d655ab259ff9eb596f0 (patch)
tree162ea1823d835f484f08aaaf2390a9130a23d5e9 /opencl
parent545d5157f26b7fd3c5648ae6e727b1e1addca68f (diff)
loplugin:nullptr: Better heuristic to determine code shared between C and C++
Change-Id: I51e1c5fa4639e51fac90f92adf3d87d12960d589
Diffstat (limited to 'opencl')
-rw-r--r--opencl/inc/opencl_device_selection.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/opencl/inc/opencl_device_selection.h b/opencl/inc/opencl_device_selection.h
index 74d8d3767d97..0b0ee4edf111 100644
--- a/opencl/inc/opencl_device_selection.h
+++ b/opencl/inc/opencl_device_selection.h
@@ -146,18 +146,18 @@ inline ds_status initDSProfile(std::unique_ptr<ds_profile>& rProfile, OString co
rProfile = std::unique_ptr<ds_profile>(new ds_profile(rVersion));
- clGetPlatformIDs(0, NULL, &numPlatforms);
+ clGetPlatformIDs(0, nullptr, &numPlatforms);
if (numPlatforms != 0)
{
platforms.resize(numPlatforms);
- clGetPlatformIDs(numPlatforms, platforms.data(), NULL);
+ clGetPlatformIDs(numPlatforms, platforms.data(), nullptr);
}
numDevices = 0;
for (i = 0; i < (unsigned int)numPlatforms; i++)
{
cl_uint num = 0;
- cl_int err = clGetDeviceIDs(platforms[i], CL_DEVICE_TYPE_ALL, 0, NULL, &num);
+ cl_int err = clGetDeviceIDs(platforms[i], CL_DEVICE_TYPE_ALL, 0, nullptr, &num);
if (err != CL_SUCCESS)
{
/* we want to catch at least the case when the call returns