Code beautification in ag_chart_load_from_file()

This commit is contained in:
Gergely Polonkai 2014-07-17 23:09:53 +02:00
parent e745312ffe
commit 4e5b649173

View File

@ -561,28 +561,28 @@ AgChart *
ag_chart_load_from_file(GFile *file, GError **err) ag_chart_load_from_file(GFile *file, GError **err)
{ {
AgChart *chart = NULL; AgChart *chart = NULL;
gchar *uri; gchar *uri,
gchar *xml = NULL; *xml = NULL,
gchar *name; *name,
gchar *country_name; *country_name,
gchar *city_name; *city_name;
gsize length; gsize length;
xmlDocPtr doc; xmlDocPtr doc;
xmlXPathContextPtr xpath_context; xmlXPathContextPtr xpath_context;
GVariant *chart_name; GVariant *chart_name,
GVariant *country; *country,
GVariant *city; *city,
GVariant *longitude; *longitude,
GVariant *latitude; *latitude,
GVariant *altitude; *altitude,
GVariant *year; *year,
GVariant *month; *month,
GVariant *day; *day,
GVariant *hour; *hour,
GVariant *minute; *minute,
GVariant *second; *second,
GVariant *timezone; *timezone,
GVariant *note; *note;
GsweTimestamp *timestamp; GsweTimestamp *timestamp;
gboolean found_error = FALSE; gboolean found_error = FALSE;
@ -797,15 +797,15 @@ ag_chart_load_from_file(GFile *file, GError **err)
} }
timestamp = gswe_timestamp_new_from_gregorian_full( timestamp = gswe_timestamp_new_from_gregorian_full(
g_variant_get_int32(year), g_variant_get_int32(year),
g_variant_get_int32(month), g_variant_get_int32(month),
g_variant_get_int32(day), g_variant_get_int32(day),
g_variant_get_int32(hour), g_variant_get_int32(hour),
g_variant_get_int32(minute), g_variant_get_int32(minute),
g_variant_get_int32(second), g_variant_get_int32(second),
0, 0,
g_variant_get_double(timezone) g_variant_get_double(timezone)
); );
g_variant_unref(year); g_variant_unref(year);
g_variant_unref(month); g_variant_unref(month);
g_variant_unref(day); g_variant_unref(day);