[tracker/gdbus: 100/101] libtracker-data: Apparently &s is a little bit faster here
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus: 100/101] libtracker-data: Apparently &s is a little bit faster here
- Date: Tue, 18 Jan 2011 08:54:37 +0000 (UTC)
commit 3e97961dfca0b5a974c525386f9b5de34f103d1c
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 | 4 ++--
src/libtracker-data/tracker-property.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-class.c b/src/libtracker-data/tracker-class.c
index 6f419cd..8fbddc7 100644
--- a/src/libtracker-data/tracker-class.c
+++ b/src/libtracker-data/tracker-class.c
@@ -227,10 +227,10 @@ tracker_class_get_super_classes (TrackerClass *service)
variant = tracker_ontologies_get_class_value_gvdb (priv->uri, "super-classes");
if (variant) {
GVariantIter iter;
- gchar *uri;
+ const 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..6b31b71 100644
--- a/src/libtracker-data/tracker-property.c
+++ b/src/libtracker-data/tracker-property.c
@@ -336,10 +336,10 @@ tracker_property_get_domain_indexes (TrackerProperty *property)
variant = tracker_ontologies_get_property_value_gvdb (priv->uri, "domain-indexes");
if (variant) {
GVariantIter iter;
- gchar *uri;
+ const 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]