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



commit 008ae0c980bc4eecc667c8f6011bc1c1728dfd50
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 0cf25a5..f2a5b63 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -517,7 +517,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]