[midgard-commits] r25509 - trunk/midgard/core/midgard/src

piotras midgard-commits at lists.midgard-project.org
Wed Mar 31 10:12:41 CEST 2010


Author: piotras
Date: Wed Mar 31 10:12:41 2010
New Revision: 25509
URL: http://trac.midgard-project.org/changeset/25509

Log:
Small corrections (enum and type declaration in switch).


Modified:
   trunk/midgard/core/midgard/src/midgard_reflector_property.c

Modified: trunk/midgard/core/midgard/src/midgard_reflector_property.c
==============================================================================
--- trunk/midgard/core/midgard/src/midgard_reflector_property.c	(original)
+++ trunk/midgard/core/midgard/src/midgard_reflector_property.c	Wed Mar 31 10:12:41 2010
@@ -287,7 +287,7 @@
 
 enum {
 	MIDGARD_REFLECTOR_PROPERTY_DBCLASS = 1
-}
+};
 
 static GObjectClass *__parent_class = NULL;
 
@@ -342,11 +342,12 @@
 		const GValue *value, GParamSpec *pspec)
 {
 	MidgardReflectorProperty *self = (MidgardReflectorProperty *) (object);
+	MidgardDBObjectClass *dbklass = NULL;
 
 	switch (property_id) {
 
 		case MIDGARD_REFLECTOR_PROPERTY_DBCLASS:
-			MidgardDBObjectClass *dbklass = g_type_class_peek (g_type_from_name (g_value_get_string (value)));
+			dbklass = g_type_class_peek (g_type_from_name (g_value_get_string (value)));
 			if (dbklass) {
 				self->klass = dbklass;
 				self->classname = G_OBJECT_CLASS_NAME (G_OBJECT_CLASS (dbklass));


More information about the midgard-commits mailing list