Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc

Issue 10383207: Fix new -Wnull-conversion violations detected by a newer clang. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
diff --git a/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc b/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
index 869763f9262ebc8098cd8d2819a61aab38da95c7..bf868dc30573a6fd87ae71d52335eb85404c94c9 100644
--- a/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
+++ b/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
@@ -289,7 +289,7 @@ bool SuddenMotionSensor::Init() {
size_t local_model_size = sizeof(local_model);
int params[2] = { CTL_HW, HW_MODEL };
if (sysctl(params, 2, local_model, &local_model_size, NULL, 0) != 0)
- return NULL;
+ return false;
const SensorDescriptor* sensor_candidate = NULL;
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698