]> granicus.if.org Git - icu/commitdiff
ICU-8451 Clean up region test - fails build on some platforms
authorJohn Emmons <emmo@us.ibm.com>
Mon, 14 Jan 2013 19:32:39 +0000 (19:32 +0000)
committerJohn Emmons <emmo@us.ibm.com>
Mon, 14 Jan 2013 19:32:39 +0000 (19:32 +0000)
X-SVN-Rev: 33050

icu4c/source/test/intltest/regiontst.cpp

index 08d130a3592e3c87c20f85f0b5a35d1e777f963d..810d7c228d7fa1eb69ea909ff8fb11c89c322e28 100644 (file)
@@ -414,7 +414,7 @@ void RegionTest::TestGetInstanceString() {
 \r
 \r
     UErrorCode status = U_ZERO_ERROR;\r
-    const Region *r = Region::getInstance(NULL,status);\r
+    const Region *r = Region::getInstance((const char *)NULL,status);\r
     if ( status != U_ILLEGAL_ARGUMENT_ERROR ) {\r
         errln("Calling Region::getInstance(NULL) should have triggered an U_ILLEGAL_ARGUMENT_ERROR, but didn't.");\r
     }\r
@@ -465,7 +465,7 @@ void RegionTest::TestGetInstanceInt() {
     };\r
 \r
     UErrorCode status = U_ZERO_ERROR;\r
-    const Region *r = Region::getInstance(-123,status);\r
+    Region::getInstance(-123,status);\r
     if ( status != U_ILLEGAL_ARGUMENT_ERROR ) {\r
         errln("Calling Region::getInstance(-123) should have triggered an U_ILLEGAL_ARGUMENT_ERROR, but didn't.");\r
     }\r
@@ -503,7 +503,6 @@ void RegionTest::TestGetContainedRegions() {
                 continue;\r
             }\r
             StringEnumeration *containedRegions = r->getContainedRegions();\r
-            int32_t count = containedRegions->count(status);\r
             for ( int32_t i = 0 ; i < containedRegions->count(status); i++ ) {\r
                 const char *crID = containedRegions->next(NULL,status);\r
                 const Region *cr = Region::getInstance(crID,status);\r