diff options
author | halcanary <halcanary@google.com> | 2015-08-27 07:41:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-27 07:41:16 -0700 |
commit | 96fcdcc219d2a0d3579719b84b28bede76efba64 (patch) | |
tree | 0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /tools/skpdiff/SkCLImageDiffer.cpp | |
parent | 435af2f736c85c3274a0c6760a3523810750d237 (diff) |
Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002
Review URL: https://codereview.chromium.org/1316233002
Diffstat (limited to 'tools/skpdiff/SkCLImageDiffer.cpp')
-rw-r--r-- | tools/skpdiff/SkCLImageDiffer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/skpdiff/SkCLImageDiffer.cpp b/tools/skpdiff/SkCLImageDiffer.cpp index 1c5d5c56ea..f181682db5 100644 --- a/tools/skpdiff/SkCLImageDiffer.cpp +++ b/tools/skpdiff/SkCLImageDiffer.cpp @@ -60,15 +60,15 @@ bool SkCLImageDiffer::loadKernelStream(SkStream* stream, const char name[], cl_k bool SkCLImageDiffer::loadKernelSource(const char source[], const char name[], cl_kernel* kernel) { // Build the kernel source size_t sourceLen = strlen(source); - cl_program program = clCreateProgramWithSource(fContext, 1, &source, &sourceLen, NULL); - cl_int programErr = clBuildProgram(program, 1, &fDevice, "", NULL, NULL); + cl_program program = clCreateProgramWithSource(fContext, 1, &source, &sourceLen, nullptr); + cl_int programErr = clBuildProgram(program, 1, &fDevice, "", nullptr, nullptr); if (CL_SUCCESS != programErr) { SkDebugf("Program creation failed: %s\n", cl_error_to_string(programErr)); // Attempt to get information about why the build failed char buildLog[4096]; clGetProgramBuildInfo(program, fDevice, CL_PROGRAM_BUILD_LOG, sizeof(buildLog), - buildLog, NULL); + buildLog, nullptr); SkDebugf("Build log: %s\n", buildLog); return false; |