Renamed ret to chart in ag_chart_new()
This commit is contained in:
parent
b3d4bed6d3
commit
8cc5755817
@ -23,14 +23,14 @@ ag_chart_init(AgChart *chart)
|
|||||||
AgChart *
|
AgChart *
|
||||||
ag_chart_new_full(GsweTimestamp *timestamp, gdouble longitude, gdouble latitude, gdouble altitude, GsweHouseSystem house_system)
|
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);
|
GsweCoordinates *coords = g_new0(GsweCoordinates, 1);
|
||||||
|
|
||||||
coords->longitude = longitude;
|
coords->longitude = longitude;
|
||||||
coords->latitude = latitude;
|
coords->latitude = latitude;
|
||||||
coords->altitude = altitude;
|
coords->altitude = altitude;
|
||||||
|
|
||||||
ret = AG_CHART(g_object_new(AG_TYPE_CHART,
|
chart = AG_CHART(g_object_new(AG_TYPE_CHART,
|
||||||
"timestamp", timestamp,
|
"timestamp", timestamp,
|
||||||
"coordinates", coords,
|
"coordinates", coords,
|
||||||
"house-system", house_system,
|
"house-system", house_system,
|
||||||
@ -38,6 +38,6 @@ ag_chart_new_full(GsweTimestamp *timestamp, gdouble longitude, gdouble latitude,
|
|||||||
|
|
||||||
g_free(coords);
|
g_free(coords);
|
||||||
|
|
||||||
return ret;
|
return chart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user