[gjs/wip/walters/632938-use-g-irepository-get-object-gtype-interfaces: 2/2] Fixup: New API



commit 66b03616766c18afe5274e60bbb1a38bc853cf17
Author: Philip Chimento <philip chimento gmail com>
Date:   Thu Jun 20 00:41:32 2019 -0700

    Fixup: New API

 gi/object.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/object.cpp b/gi/object.cpp
index 763a8685..7bf3d644 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -641,7 +641,7 @@ bool ObjectPrototype::resolve_no_info(JSContext* cx, JS::HandleObject obj,
                                       JS::HandleId id, bool* resolved,
                                       const char* name,
                                       ResolveWhat resolve_props) {
-    GIInterfaceInfo *interfaces;
+    GIInterfaceInfo** interfaces;
     guint n_interfaces;
     guint i;
     g_irepository_get_object_gtype_interfaces(nullptr, m_gtype, &n_interfaces,
@@ -654,7 +654,7 @@ bool ObjectPrototype::resolve_no_info(JSContext* cx, JS::HandleObject obj,
     }
 
     for (i = 0; i < n_interfaces; i++) {
-        GIInterfaceInfo *iface_info = interfaces + i;
+        GIInterfaceInfo* iface_info = *(interfaces + i);
         GjsAutoFunctionInfo method_info =
             g_interface_info_find_method(iface_info, name);
         if (method_info) {


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