}
else
{
- ret = strtol (gda_value_stringify (v), NULL, 10);
+ gchar *str;
+ str = gda_value_stringify (v);
+ ret = strtol (str, NULL, 10);
+ g_free (str);
}
}
else
}
else
{
- ret = g_strtod (gda_value_stringify (v), NULL);
+ gchar *str;
+ str = gda_value_stringify (v);
+ ret = g_strtod (str, NULL);
+ g_free (str);
}
}
else
}
else
{
- ret = g_strtod (gda_value_stringify (v), NULL);
+ gchar *str;
+ str = gda_value_stringify (v);
+ ret = g_strtod (str, NULL);
+ g_free (str);
}
}
else
}
else if (gda_value_isa (v, G_TYPE_DATE))
{
- gdate = gdaex_data_model_get_value_gdate_at (data_model, row, col);
+ gdate = (GDate *)g_value_get_boxed (v);
ret = g_date_time_new_local ((gint)g_date_get_year (gdate),
(gint)g_date_get_month (gdate),
(gint)g_date_get_day (gdate),
}
else
{
- ret = strtol (gda_value_stringify (v), NULL, 10);
+ gchar *str;
+ str = gda_value_stringify (v);
+ ret = strtol (str, NULL, 10);
+ g_free (str);
}
}
}
else
{
- ret = g_strtod (gda_value_stringify (v), NULL);
+ gchar *str;
+ str = gda_value_stringify (v);
+ ret = g_strtod (str, NULL);
+ g_free (str);
}
}
}
else
{
- ret = g_strtod (gda_value_stringify (v), NULL);
+ gchar *str;
+ str = gda_value_stringify (v);
+ ret = g_strtod (str, NULL);
+ g_free (str);
}
}
}
else if (gda_value_isa (v, G_TYPE_DATE))
{
- gdate = gdaex_data_model_iter_get_value_gdate_at (iter, col);
+ gdate = (GDate *)g_value_get_boxed (v);
if (gdate != NULL && g_date_valid (gdate))
{
- ret = g_date_time_new_local (g_date_get_year (gdate),
- g_date_get_month (gdate),
- g_date_get_day (gdate),
- 0,
- 0,
- 0.0);
+ ret = g_date_time_new_local ((gint)g_date_get_year (gdate),
+ (gint)g_date_get_month (gdate),
+ (gint)g_date_get_day (gdate),
+ (gint)0,
+ (gint)0,
+ (gdouble)0.0);
}
}
else if (gda_value_isa (v, G_TYPE_DATE_TIME))