[glib/gobject-speedups4] Consistently use param_spec_follow_override



commit 948186cf4a1b5a02b2ebc6fce8a47822146b7035
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 7 08:52:00 2022 -0400

    Consistently use param_spec_follow_override

 gobject/gobject.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index e644c73178..5600dcf7fe 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -970,8 +970,7 @@ g_object_class_find_property (GObjectClass *class,
 
   pspec = find_pspec (class, property_name);
 
-  if (pspec && ((GTypeInstance *)pspec)->g_class->g_type == G_TYPE_PARAM_OVERRIDE)
-    pspec = ((GParamSpecOverride *)pspec)->overridden;
+  param_spec_follow_override (&pspec);
 
   return pspec;
 }


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