From d15a671219144c36d45d12f756bdefc701431e11 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Mon, 24 Nov 2003 23:34:18 +0000 Subject: [PATCH] ICU-2424 fixes for windows X-SVN-Rev: 13864 --- icu4c/source/test/intltest/astrotst.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/icu4c/source/test/intltest/astrotst.cpp b/icu4c/source/test/intltest/astrotst.cpp index 36dfef83c4..db3d0ad41b 100644 --- a/icu4c/source/test/intltest/astrotst.cpp +++ b/icu4c/source/test/intltest/astrotst.cpp @@ -96,7 +96,6 @@ void AstroTest::TestSolarLongitude(void) { //longitude = 0; CalendarAstronomer::Equatorial *result = astro->getSunPosition(); logln((UnicodeString)"Sun position is " + result->toString() + (UnicodeString)"; " /* + result->toHmsString()*/ + " Sun longitude is " + longitude ); - delete result; } closeAstro(status); ASSERT_OK(status); @@ -136,7 +135,7 @@ void AstroTest::TestCoordinates(void) { CalendarAstronomer::Equatorial *result = astro->eclipticToEquatorial(139.686111 * CalendarAstronomer::PI / 180.0, 4.875278* CalendarAstronomer::PI / 180.0); logln((UnicodeString)"result is " + result->toString() + (UnicodeString)"; " /* + result->toHmsString()*/ ); - delete result; +// delete result; closeAstro(status); ASSERT_OK(status); } @@ -178,12 +177,12 @@ void AstroTest::TestCoverage(void) { logln((UnicodeString)" gw sidereal: " + astro->getGreenwichSidereal()); logln((UnicodeString)" loc sidereal: " + astro->getLocalSidereal()); logln((UnicodeString)" equ ecl: " + (eq=astro->eclipticToEquatorial(*ecl))->toString()); - delete eq; + //delete eq; logln((UnicodeString)" equ long: " + (eq=astro->eclipticToEquatorial(eclLong))->toString()); - delete eq; + //delete eq; CalendarAstronomer::Horizon *hor = NULL; logln((UnicodeString)" horiz: " + (hor=astro->eclipticToHorizon(eclLong))->toString()); - delete hor; + //delete hor; logln((UnicodeString)" sunrise: " + (astro->getSunRiseSet(TRUE))); logln((UnicodeString)" sunset: " + (astro->getSunRiseSet(FALSE))); logln((UnicodeString)" moon phase: " + astro->getMoonPhase());