[libhandy] swipeable: Don't dereference function pointers



commit b1da42522e88956abaaf02a906c9e29ff318cd57
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Jul 22 02:32:54 2020 +0500

    swipeable: Don't dereference function pointers
    
    Signed-off-by: Alexander Mikhaylenko <alexm gnome org>

 src/hdy-swipeable.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/hdy-swipeable.c b/src/hdy-swipeable.c
index dcd16220..54fc7e18 100644
--- a/src/hdy-swipeable.c
+++ b/src/hdy-swipeable.c
@@ -79,7 +79,7 @@ hdy_swipeable_switch_child (HdySwipeable *self,
   iface = HDY_SWIPEABLE_GET_IFACE (self);
   g_return_if_fail (iface->switch_child != NULL);
 
-  (* iface->switch_child) (self, index, duration);
+  iface->switch_child (self, index, duration);
 }
 
 /**
@@ -125,7 +125,7 @@ hdy_swipeable_get_swipe_tracker (HdySwipeable *self)
   iface = HDY_SWIPEABLE_GET_IFACE (self);
   g_return_val_if_fail (iface->get_swipe_tracker != NULL, NULL);
 
-  return (* iface->get_swipe_tracker) (self);
+  return iface->get_swipe_tracker (self);
 }
 
 /**
@@ -149,7 +149,7 @@ hdy_swipeable_get_distance (HdySwipeable *self)
   iface = HDY_SWIPEABLE_GET_IFACE (self);
   g_return_val_if_fail (iface->get_distance != NULL, 0);
 
-  return (* iface->get_distance) (self);
+  return iface->get_distance (self);
 }
 
 /**
@@ -176,7 +176,7 @@ hdy_swipeable_get_snap_points (HdySwipeable *self,
   iface = HDY_SWIPEABLE_GET_IFACE (self);
   g_return_val_if_fail (iface->get_snap_points != NULL, NULL);
 
-  return (* iface->get_snap_points) (self, n_snap_points);
+  return iface->get_snap_points (self, n_snap_points);
 }
 
 /**
@@ -199,7 +199,7 @@ hdy_swipeable_get_progress (HdySwipeable *self)
   iface = HDY_SWIPEABLE_GET_IFACE (self);
   g_return_val_if_fail (iface->get_progress != NULL, 0);
 
-  return (* iface->get_progress) (self);
+  return iface->get_progress (self);
 }
 
 /**
@@ -222,7 +222,7 @@ hdy_swipeable_get_cancel_progress (HdySwipeable *self)
   iface = HDY_SWIPEABLE_GET_IFACE (self);
   g_return_val_if_fail (iface->get_cancel_progress != NULL, 0);
 
-  return (* iface->get_cancel_progress) (self);
+  return iface->get_cancel_progress (self);
 }
 
 /**
@@ -260,7 +260,7 @@ hdy_swipeable_get_swipe_area (HdySwipeable           *self,
   iface = HDY_SWIPEABLE_GET_IFACE (self);
 
   if (iface->get_swipe_area) {
-    (* iface->get_swipe_area) (self, navigation_direction, is_drag, rect);
+    iface->get_swipe_area (self, navigation_direction, is_drag, rect);
     return;
   }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]