summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-10-12 19:41:57 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2015-10-12 19:54:32 +0100
commitb6425bbb15ceaebf39282fb1ad18f4a1f6799780 (patch)
tree76c74e27f6e1cc239328073ae9293d4683a23bca
parent1fe21a8fe174a4c98e8c694cff5bfc80ddb9efde (diff)
downloadclutter-b6425bbb15ceaebf39282fb1ad18f4a1f6799780.tar.gz
Use explicit NULL comparison for pointers
Following the coding style.
-rw-r--r--clutter/evdev/clutter-device-manager-evdev.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/clutter/evdev/clutter-device-manager-evdev.c b/clutter/evdev/clutter-device-manager-evdev.c
index b4f7d95df..32ffea892 100644
--- a/clutter/evdev/clutter-device-manager-evdev.c
+++ b/clutter/evdev/clutter-device-manager-evdev.c
@@ -265,7 +265,7 @@ notify_key_device (ClutterInputDevice *input_device,
/* We can drop the event on the floor if no stage has been
* associated with the device yet. */
stage = _clutter_input_device_get_stage (input_device);
- if (!stage)
+ if (stage == NULL)
{
clear_repeat_timer (seat);
return;
@@ -370,7 +370,7 @@ notify_absolute_motion (ClutterInputDevice *input_device,
/* We can drop the event on the floor if no stage has been
* associated with the device yet. */
stage = _clutter_input_device_get_stage (input_device);
- if (!stage)
+ if (stage == NULL)
return;
device_evdev = CLUTTER_INPUT_DEVICE_EVDEV (input_device);
@@ -467,7 +467,7 @@ notify_discrete_scroll (ClutterInputDevice *input_device,
/* We can drop the event on the floor if no stage has been
* associated with the device yet. */
stage = _clutter_input_device_get_stage (input_device);
- if (!stage)
+ if (stage == NULL)
return;
device_evdev = CLUTTER_INPUT_DEVICE_EVDEV (input_device);
@@ -505,7 +505,7 @@ notify_scroll (ClutterInputDevice *input_device,
/* We can drop the event on the floor if no stage has been
* associated with the device yet. */
stage = _clutter_input_device_get_stage (input_device);
- if (!stage)
+ if (stage == NULL)
return;
device_evdev = CLUTTER_INPUT_DEVICE_EVDEV (input_device);
@@ -555,7 +555,7 @@ notify_button (ClutterInputDevice *input_device,
/* We can drop the event on the floor if no stage has been
* associated with the device yet. */
stage = _clutter_input_device_get_stage (input_device);
- if (!stage)
+ if (stage == NULL)
return;
device_evdev = CLUTTER_INPUT_DEVICE_EVDEV (input_device);
@@ -631,7 +631,7 @@ notify_touch_event (ClutterInputDevice *input_device,
/* We can drop the event on the floor if no stage has been
* associated with the device yet. */
stage = _clutter_input_device_get_stage (input_device);
- if (!stage)
+ if (stage == NULL)
return;
device_evdev = CLUTTER_INPUT_DEVICE_EVDEV (input_device);
@@ -676,7 +676,7 @@ notify_pinch_gesture_event (ClutterInputDevice *input_device,
/* We can drop the event on the floor if no stage has been
* associated with the device yet. */
stage = _clutter_input_device_get_stage (input_device);
- if (!stage)
+ if (stage == NULL)
return;
device_evdev = CLUTTER_INPUT_DEVICE_EVDEV (input_device);
@@ -721,7 +721,7 @@ notify_swipe_gesture_event (ClutterInputDevice *input_device,
/* We can drop the event on the floor if no stage has been
* associated with the device yet. */
stage = _clutter_input_device_get_stage (input_device);
- if (!stage)
+ if (stage == NULL)
return;
device_evdev = CLUTTER_INPUT_DEVICE_EVDEV (input_device);
@@ -1354,7 +1354,7 @@ process_device_event (ClutterDeviceManagerEvdev *manager_evdev,
device = libinput_device_get_user_data (libinput_device);
stage = _clutter_input_device_get_stage (device);
- if (!stage)
+ if (stage == NULL)
break;
stage_width = clutter_actor_get_width (CLUTTER_ACTOR (stage));
@@ -1476,7 +1476,7 @@ process_device_event (ClutterDeviceManagerEvdev *manager_evdev,
device = libinput_device_get_user_data (libinput_device);
stage = _clutter_input_device_get_stage (device);
- if (!stage)
+ if (stage == NULL)
break;
stage_width = clutter_actor_get_width (CLUTTER_ACTOR (stage));
@@ -1531,7 +1531,7 @@ process_device_event (ClutterDeviceManagerEvdev *manager_evdev,
device = libinput_device_get_user_data (libinput_device);
stage = _clutter_input_device_get_stage (device);
- if (!stage)
+ if (stage == NULL)
break;
stage_width = clutter_actor_get_width (CLUTTER_ACTOR (stage));