[tracker/wip/carlosg/update-perf: 14/43] libtracker-sparql/core: Use GType directly




commit 8ab80c4242e265f32973a8910d23ff8ea299d0be
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Jul 31 23:53:40 2022 +0200

    libtracker-sparql/core: Use GType directly
    
    We no longer have this restriction since we build a monolithic library.

 src/libtracker-sparql/core/tracker-data-update.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-sparql/core/tracker-data-update.c 
b/src/libtracker-sparql/core/tracker-data-update.c
index 17a4e4028..154f37a87 100644
--- a/src/libtracker-sparql/core/tracker-data-update.c
+++ b/src/libtracker-sparql/core/tracker-data-update.c
@@ -28,6 +28,7 @@
 #include <libtracker-common/tracker-common.h>
 
 #include <libtracker-sparql/tracker-deserializer-rdf.h>
+#include <libtracker-sparql/tracker-uri.h>
 
 #include "tracker-class.h"
 #include "tracker-data-manager.h"
@@ -859,8 +860,7 @@ statement_bind_gvalue (TrackerDBStatement *stmt,
                                /* String with langtag */
                                tracker_db_statement_bind_bytes (stmt, (*idx)++, bytes);
                        }
-               } else if (g_strcmp0 (g_type_name (type), "TrackerUri") == 0) {
-                       /* FIXME: We can't access TrackerUri GType here */
+               } else if (type == TRACKER_TYPE_URI) {
                        tracker_db_statement_bind_text (stmt, (*idx)++, g_value_get_string (value));
                } else {
                        g_warning ("Unknown type for binding: %s\n", G_VALUE_TYPE_NAME (value));


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