[tracker/tracker-0.10] libtracker-data: Add some code comments for clarification



commit fe3024c8df8b49785a1a0df130ee8b43bd0f8ccb
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Aug 9 16:07:08 2011 +0200

    libtracker-data: Add some code comments for clarification

 src/libtracker-data/tracker-data-update.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index ad58b4c..20836a8 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2299,6 +2299,7 @@ delete_all_objects (const gchar  *graph,
 				object_id = (gint) g_value_get_int64 (g_value_array_get_nth (old_values, 0));
 				tried = TRUE;
 
+				/* This influences old_values, which is a reference, not a copy */
 				change = delete_metadata_decomposed (field, NULL, object_id, error);
 
 #ifndef DISABLE_JOURNAL
@@ -2316,6 +2317,7 @@ delete_all_objects (const gchar  *graph,
 				object_id = 0;
 				tried = TRUE;
 
+				/* This influences old_values, which is a reference, not a copy */
 				change = delete_metadata_decomposed (field, object, 0, error);
 
 #ifndef DISABLE_JOURNAL



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