[gtk/wip/baedert/for-master: 43/57] gesturelongpress: Remove a useless cast




commit fc484452e8430f60d6fc6976187b48c646acfa9a
Author: Timm Bäder <mail baedert org>
Date:   Sat Dec 26 09:44:36 2020 +0100

    gesturelongpress: Remove a useless cast
    
    We already get a GtkGestureLongPress here.

 gtk/gtkgesturelongpress.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/gtkgesturelongpress.c b/gtk/gtkgesturelongpress.c
index c7dc7cbf10..7a27a307fc 100644
--- a/gtk/gtkgesturelongpress.c
+++ b/gtk/gtkgesturelongpress.c
@@ -75,9 +75,7 @@ G_DEFINE_TYPE_WITH_PRIVATE (GtkGestureLongPress, gtk_gesture_long_press, GTK_TYP
 static void
 gtk_gesture_long_press_init (GtkGestureLongPress *gesture)
 {
-  GtkGestureLongPressPrivate *priv;
-
-  priv = gtk_gesture_long_press_get_instance_private (GTK_GESTURE_LONG_PRESS (gesture));
+  GtkGestureLongPressPrivate *priv = gtk_gesture_long_press_get_instance_private (gesture);
   priv->delay_factor = 1.0;
 }
 


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