Renamed ret to chart in ag_chart_new()

This commit is contained in:
Gergely Polonkai 2013-09-17 09:31:37 +02:00
parent b3d4bed6d3
commit 8cc5755817

View File

@ -23,14 +23,14 @@ ag_chart_init(AgChart *chart)
AgChart *
ag_chart_new_full(GsweTimestamp *timestamp, gdouble longitude, gdouble latitude, gdouble altitude, GsweHouseSystem house_system)
{
AgChart *ret;
AgChart *chart;
GsweCoordinates *coords = g_new0(GsweCoordinates, 1);
coords->longitude = longitude;
coords->latitude = latitude;
coords->altitude = altitude;
ret = AG_CHART(g_object_new(AG_TYPE_CHART,
chart = AG_CHART(g_object_new(AG_TYPE_CHART,
"timestamp", timestamp,
"coordinates", coords,
"house-system", house_system,
@ -38,6 +38,6 @@ ag_chart_new_full(GsweTimestamp *timestamp, gdouble longitude, gdouble latitude,
g_free(coords);
return ret;
return chart;
}