[gnome-builder] configuration: get_internal_int64 and get_internal_object



commit 58999f6aab2caad1c45bfbef7e720f322ae806b9
Author: Christian Hergert <chergert redhat com>
Date:   Thu Nov 3 20:12:35 2016 -0700

    configuration: get_internal_int64 and get_internal_object
    
    These were both missing value lookups.

 libide/buildsystem/ide-configuration.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libide/buildsystem/ide-configuration.c b/libide/buildsystem/ide-configuration.c
index 8f9df9d..48cbce8 100644
--- a/libide/buildsystem/ide-configuration.c
+++ b/libide/buildsystem/ide-configuration.c
@@ -1133,6 +1133,8 @@ ide_configuration_get_internal_int64 (IdeConfiguration *self,
   g_return_val_if_fail (IDE_IS_CONFIGURATION (self), -1);
   g_return_val_if_fail (key != NULL, -1);
 
+  v = g_hash_table_lookup (self->internal, key);
+
   if (v != NULL && G_VALUE_HOLDS_INT64 (v))
     return g_value_get_int64 (v);
 
@@ -1171,6 +1173,8 @@ ide_configuration_get_internal_object (IdeConfiguration *self,
   g_return_val_if_fail (IDE_IS_CONFIGURATION (self), NULL);
   g_return_val_if_fail (key != NULL, NULL);
 
+  v = g_hash_table_lookup (self->internal, key);
+
   if (v != NULL && G_VALUE_HOLDS_OBJECT (v))
     return g_value_get_object (v);
 


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