[gcalctool] Remove unnecessary static variable



commit 714cc5b51b424751b013e93b6476ad7b1f7b027f
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Jan 28 10:40:38 2011 +1000

    Remove unnecessary static variable

 src/mp-serializer.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/mp-serializer.c b/src/mp-serializer.c
index b19b0b4..4bf27fe 100644
--- a/src/mp-serializer.c
+++ b/src/mp-serializer.c
@@ -34,8 +34,6 @@ enum {
     PROP_BASE,
 };
 
-static GType number_format_type;
-
 struct MpSerializerPrivate
 {
     gint accuracy;            /* Number of digits to show */
@@ -542,8 +540,6 @@ mp_serializer_class_init(MpSerializerClass *klass)
 
     g_type_class_add_private(klass, sizeof(MpSerializerPrivate));
 
-    number_format_type = math_mp_display_format_get_type();
-
     g_object_class_install_property(object_class,
                                     PROP_SHOW_THOUSANDS_SEPARATORS,
                                     g_param_spec_boolean("show-thousands-separators",
@@ -563,7 +559,7 @@ mp_serializer_class_init(MpSerializerClass *klass)
                                     g_param_spec_enum("number-format",
                                                       "number-format",
                                                       "Display format",
-                                                      number_format_type,
+                                                      math_mp_display_format_get_type(),
                                                       MP_DISPLAY_FORMAT_AUTOMATIC,
                                                       G_PARAM_READWRITE));
     g_object_class_install_property(object_class,



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