]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/citer/citer.cpp
ICU-66108.tar.gz
[apple/icu.git] / icuSources / samples / citer / citer.cpp
index 43e5a00a054e22c321b1eae99c13d6cb911bc554..4d5a3bbe837dbc80a7497526228638a33e40e091 100644 (file)
@@ -59,7 +59,7 @@ void Test::TestUChariter() {
     const UChar *testText = testString.getTerminatedBuffer();
 
     UCharCharacterIterator iter(testText, u_strlen(testText));
-    UCharCharacterIterator* test2 = (UCharCharacterIterator*)iter.clone();
+    UCharCharacterIterator* test2 = iter.clone();
 
     u_fprintf(out, "testText = %s", testChars);
 
@@ -126,7 +126,7 @@ void Test::TestStringiter() {
     const UChar *testText    = testString.getTerminatedBuffer();
 
     StringCharacterIterator iter(testText, u_strlen(testText));
-    StringCharacterIterator* test2 = (StringCharacterIterator*)iter.clone();
+    StringCharacterIterator* test2 = iter.clone();
 
     if (iter != *test2 ) {
         u_fprintf(out, "clone() or equals() failed: Two clones tested unequal\n");