From e23c789ff0332bb2c7c0ecad5123c3dd71f64e04 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 15 Mar 2014 11:40:52 +0100 Subject: [PATCH] Change GList->next calls to g_list_next(GList) --- src/gswe-moment.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gswe-moment.c b/src/gswe-moment.c index c9e895b..621e8c7 100644 --- a/src/gswe-moment.c +++ b/src/gswe-moment.c @@ -1022,8 +1022,8 @@ gswe_moment_calculate_aspects(GsweMoment *moment) g_list_free_full(moment->priv->aspect_list, (GDestroyNotify)gswe_aspect_data_unref); moment->priv->aspect_list = NULL; - for (oplanet = moment->priv->planet_list; oplanet; oplanet = oplanet->next) { - for (iplanet = moment->priv->planet_list; iplanet; iplanet = iplanet->next) { + for (oplanet = moment->priv->planet_list; oplanet; oplanet = g_list_next(oplanet)) { + for (iplanet = moment->priv->planet_list; iplanet; iplanet = g_list_next(iplanet)) { GswePlanetData *outer_planet = oplanet->data, *inner_planet = iplanet->data; struct GsweAspectFinder aspect_finder; @@ -1097,7 +1097,7 @@ gswe_moment_get_planet_aspects(GsweMoment *moment, GswePlanet planet, GError **e gswe_moment_calculate_aspects(moment); - for (aspect = moment->priv->aspect_list; aspect; aspect = aspect->next) { + for (aspect = moment->priv->aspect_list; aspect; aspect = g_list_next(aspect)) { GsweAspectData *aspect_data = aspect->data; if ( @@ -1144,8 +1144,8 @@ gswe_moment_calculate_antiscia(GsweMoment *moment) g_list_free_full(moment->priv->antiscia_list, (GDestroyNotify)gswe_antiscion_data_unref); moment->priv->antiscia_list = NULL; - for (oplanet = moment->priv->planet_list; oplanet; oplanet = oplanet->next) { - for (iplanet = moment->priv->planet_list; iplanet; iplanet = iplanet->next) { + for (oplanet = moment->priv->planet_list; oplanet; oplanet = g_list_next(oplanet)) { + for (iplanet = moment->priv->planet_list; iplanet; iplanet = g_list_next(iplanet)) { GswePlanetData *outer_planet = oplanet->data, *inner_planet = iplanet->data; struct GsweAspectFinder antiscion_finder;