| OLD | NEW |
| 1 /** | 1 /** |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * Copyright (C) 2001-2010, International Business Machines Corporation. | 3 * Copyright (C) 2001-2010, International Business Machines Corporation. |
| 4 * All Rights Reserved. | 4 * All Rights Reserved. |
| 5 ******************************************************************************* | 5 ******************************************************************************* |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "unicode/utypes.h" | 8 #include "unicode/utypes.h" |
| 9 | 9 |
| 10 #if !UCONFIG_NO_SERVICE | 10 #if !UCONFIG_NO_SERVICE |
| (...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 941 void | 941 void |
| 942 ICUService::clearServiceCache() | 942 ICUService::clearServiceCache() |
| 943 { | 943 { |
| 944 // callers synchronize before use | 944 // callers synchronize before use |
| 945 delete serviceCache; serviceCache = NULL; | 945 delete serviceCache; serviceCache = NULL; |
| 946 } | 946 } |
| 947 | 947 |
| 948 UBool | 948 UBool |
| 949 ICUService::acceptsListener(const EventListener& l) const | 949 ICUService::acceptsListener(const EventListener& l) const |
| 950 { | 950 { |
| 951 return dynamic_cast<const ServiceListener*>(&l) != NULL; | 951 return CR_DYNAMIC_CAST<const ServiceListener*>(&l) != NULL; |
| 952 } | 952 } |
| 953 | 953 |
| 954 void | 954 void |
| 955 ICUService::notifyListener(EventListener& l) const | 955 ICUService::notifyListener(EventListener& l) const |
| 956 { | 956 { |
| 957 ((ServiceListener&)l).serviceChanged(*this); | 957 ((ServiceListener&)l).serviceChanged(*this); |
| 958 } | 958 } |
| 959 | 959 |
| 960 UnicodeString& | 960 UnicodeString& |
| 961 ICUService::getName(UnicodeString& result) const | 961 ICUService::getName(UnicodeString& result) const |
| (...skipping 10 matching lines...) Expand all Loading... |
| 972 int32_t | 972 int32_t |
| 973 ICUService::getTimestamp() const | 973 ICUService::getTimestamp() const |
| 974 { | 974 { |
| 975 return timestamp; | 975 return timestamp; |
| 976 } | 976 } |
| 977 | 977 |
| 978 U_NAMESPACE_END | 978 U_NAMESPACE_END |
| 979 | 979 |
| 980 /* UCONFIG_NO_SERVICE */ | 980 /* UCONFIG_NO_SERVICE */ |
| 981 #endif | 981 #endif |
| OLD | NEW |