Move gswe_timestamp_new_from_julian_day() to g_object_new() call

This commit is contained in:
Gergely Polonkai 2014-11-18 00:42:17 +01:00
parent 1c14b451fd
commit 0886396879
1 changed files with 4 additions and 2 deletions

View File

@ -1701,9 +1701,11 @@ gswe_timestamp_new_from_gregorian_full(
GsweTimestamp *
gswe_timestamp_new_from_julian_day(gdouble julian_day)
{
GsweTimestamp *timestamp = gswe_timestamp_new();
GsweTimestamp *timestamp;
gswe_timestamp_set_julian_day_et(timestamp, julian_day, NULL);
timestamp = GSWE_TIMESTAMP(g_object_new(GSWE_TYPE_TIMESTAMP,
"julian-day", julian_day,
NULL));
return timestamp;
}