diff options
Diffstat (limited to 'kweather/sun.cpp')
-rw-r--r-- | kweather/sun.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kweather/sun.cpp b/kweather/sun.cpp index 8cabdb9..50b89f0 100644 --- a/kweather/sun.cpp +++ b/kweather/sun.cpp @@ -176,7 +176,7 @@ static double latitudeToDouble( const TQString &latitude ) result = dd + (mm / 60); - if (latitude.contains("S")) + if (latitude.tqcontains("S")) result *= -1; return result; @@ -192,7 +192,7 @@ static double longitudeToDouble( const TQString &longitude ) result = ddd + (mm / 60); - if (longitude.contains("W")) + if (longitude.tqcontains("W")) result *= -1; return result; @@ -282,7 +282,7 @@ static int __sunriset__( int year, int month, int day, double lon, double lat, double sr; /* Solar distance, astronomical units */ double sRA; /* Sun's Right Ascension */ double sdec; /* Sun's declination */ - double sradius; /* Sun's apparent radius */ + double sradius; /* Sun's aptqparent radius */ double t; /* Diurnal arc */ double tsouth; /* Time when Sun is at south */ double sidtime; /* Local sidereal time */ @@ -303,7 +303,7 @@ static int __sunriset__( int year, int month, int day, double lon, double lat, /* Compute time when Sun is at south - in hours UT */ tsouth = 12.0 - rev180(sidtime - sRA) / 15.0; - /* Compute the Sun's apparent radius, degrees */ + /* Compute the Sun's aptqparent radius, degrees */ sradius = 0.2666 / sr; /* Do correction to upper limb, if necessary */ |