]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/serv.cpp
ICU-461.12.tar.gz
[apple/icu.git] / icuSources / common / serv.cpp
index f94fd4390f429d97210c1793e829aeac1f8da6e7..4f1da5bedc55f4abad276df75a95230b46cf983a 100644 (file)
@@ -1,7 +1,7 @@
 /**
 *******************************************************************************
-* Copyright (C) 2001-2008, International Business Machines Corporation.       *
-* All Rights Reserved.                                                        *
+* Copyright (C) 2001-2010, International Business Machines Corporation.
+* All Rights Reserved.
 *******************************************************************************
 */
 
@@ -948,7 +948,7 @@ ICUService::clearServiceCache()
 UBool 
 ICUService::acceptsListener(const EventListener& l) const 
 {
-    return l.getDynamicClassID() == ServiceListener::getStaticClassID();
+    return dynamic_cast<const ServiceListener*>(&l) != NULL;
 }
 
 void