]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/schriter.cpp
ICU-57163.0.1.tar.gz
[apple/icu.git] / icuSources / common / schriter.cpp
index c6c42442a75e69759357299845074d8865f66fc0..17ce400186969adbd2d088470299019446941df7 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
-* Copyright (C) 1998-2007, International Business Machines Corporation and   *
-* others. All Rights Reserved.                                               *
+* Copyright (C) 1998-2012, International Business Machines Corporation and
+* others. All Rights Reserved.
 ******************************************************************************
 *
 * File schriter.cpp
@@ -13,6 +13,8 @@
 ******************************************************************************
 */
 
+#include "utypeinfo.h"  // for 'typeid' to work
+
 #include "unicode/chariter.h"
 #include "unicode/schriter.h"
 
@@ -85,7 +87,7 @@ StringCharacterIterator::operator==(const ForwardCharacterIterator& that) const
     // because that checks for array pointer equality
     // while we compare UnicodeString objects
 
-    if (getDynamicClassID() != that.getDynamicClassID()) {
+    if (typeid(*this) != typeid(that)) {
         return FALSE;
     }