[tracker] libtracker-data: Simplify inverse functional property check



commit e6f5d0d67379bf0ce5ba1145b16b56dcde2be65d
Author: Jürg Billeter <j bitron ch>
Date:   Thu Nov 12 09:54:58 2009 +0100

    libtracker-data: Simplify inverse functional property check

 src/libtracker-data/tracker-data-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 24a02cd..6ffb8af 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -523,7 +523,7 @@ db_get_static_data (TrackerDBInterface *iface)
 			tracker_db_cursor_get_value (cursor, 8, &value);
 
 			if (G_VALUE_TYPE (&value) != 0) {
-				is_inverse_functional_property = (g_value_get_int (&value) == 1);
+				is_inverse_functional_property = TRUE;
 				g_value_unset (&value);
 			} else {
 				/* NULL */



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