ICU-4707 Fix some compiler warnings.

X-SVN-Rev: 19887
This commit is contained in:
George Rhoten 2006-07-25 03:58:17 +00:00
parent b077601956
commit 198bcd69bb
2 changed files with 10 additions and 4 deletions

View file

@ -1,5 +1,5 @@
/************************************************************************
* Copyright (C) 1996-2005, International Business Machines Corporation *
* Copyright (C) 1996-2006, International Business Machines Corporation *
* and others. All Rights Reserved. *
************************************************************************
* 2003-nov-07 srl Port from Java
@ -654,6 +654,8 @@ double CalendarAstronomer::WINTER_SOLSTICE() {
return ((CalendarAstronomer::PI*3)/2);
}
CalendarAstronomer::AngleFunc::~AngleFunc() {}
/**
* Find the next time at which the sun's ecliptic longitude will have
* the desired value.
@ -675,6 +677,8 @@ UDate CalendarAstronomer::getSunTime(double desired, UBool next)
next);
}
CalendarAstronomer::CoordFunc::~CoordFunc() {}
class RiseSetCoordFunc : public CalendarAstronomer::CoordFunc {
public:
virtual void eval(CalendarAstronomer::Equatorial& result, CalendarAstronomer&a) { a.getSunPosition(result); }

View file

@ -1,5 +1,5 @@
/************************************************************************
* Copyright (C) 1996-2003, International Business Machines Corporation *
* Copyright (C) 1996-2006, International Business Machines Corporation *
* and others. All Rights Reserved. *
************************************************************************
* 2003-nov-07 srl Port from Java
@ -643,18 +643,20 @@ public:
//-------------------------------------------------------------------------
// private
class U_I18N_API AngleFunc : public UMemory {
class AngleFunc : public UMemory {
public:
virtual double eval(CalendarAstronomer&) = 0;
virtual ~AngleFunc();
};
friend class AngleFunc;
UDate timeOfAngle(AngleFunc& func, double desired,
double periodDays, double epsilon, UBool next);
class U_I18N_API CoordFunc : public UMemory {
class CoordFunc : public UMemory {
public:
virtual void eval(Equatorial& result, CalendarAstronomer&) = 0;
virtual ~CoordFunc();
};
friend class CoordFunc;