[tracker/gdbus] libtracker-data: Apparently &s is a little bit faster here



commit 0996ec102505d334cd91b52282f4cea451b4f3ec
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Jan 17 17:15:49 2011 +0100

    libtracker-data: Apparently &s is a little bit faster here

 src/libtracker-data/tracker-class.c    |    2 +-
 src/libtracker-data/tracker-property.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-class.c b/src/libtracker-data/tracker-class.c
index 6f419cd..0b33052 100644
--- a/src/libtracker-data/tracker-class.c
+++ b/src/libtracker-data/tracker-class.c
@@ -230,7 +230,7 @@ tracker_class_get_super_classes (TrackerClass *service)
 			gchar *uri;
 
 			g_variant_iter_init (&iter, variant);
-			while (g_variant_iter_loop (&iter, "s", &uri)) {
+			while (g_variant_iter_loop (&iter, "&s", &uri)) {
 				super_class = tracker_ontologies_get_class_by_uri (uri);
 
 				tracker_class_add_super_class (service, super_class);
diff --git a/src/libtracker-data/tracker-property.c b/src/libtracker-data/tracker-property.c
index d100d21..9dadaf1 100644
--- a/src/libtracker-data/tracker-property.c
+++ b/src/libtracker-data/tracker-property.c
@@ -339,7 +339,7 @@ tracker_property_get_domain_indexes (TrackerProperty *property)
 			gchar *uri;
 
 			g_variant_iter_init (&iter, variant);
-			while (g_variant_iter_loop (&iter, "s", &uri)) {
+			while (g_variant_iter_loop (&iter, "&s", &uri)) {
 				domain_index = tracker_ontologies_get_class_by_uri (uri);
 
 				tracker_property_add_domain_index (property, domain_index);



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