| Index: third_party/icu/source/tools/toolutil/xmlparser.cpp
|
| ===================================================================
|
| --- third_party/icu/source/tools/toolutil/xmlparser.cpp (revision 74230)
|
| +++ third_party/icu/source/tools/toolutil/xmlparser.cpp (working copy)
|
| @@ -715,7 +715,7 @@
|
| int32_t i, count=fChildren.size();
|
| for(i=0; i<count; ++i) {
|
| node=(const UObject *)fChildren.elementAt(i);
|
| - const UnicodeString *s=dynamic_cast<const UnicodeString *>(node);
|
| + const UnicodeString *s=CR_DYNAMIC_CAST<const UnicodeString *>(node);
|
| if(s!=NULL) {
|
| text.append(*s);
|
| } else if(recurse) /* must be a UXMLElement */ {
|
| @@ -767,7 +767,7 @@
|
| UXMLElement::getChild(int32_t i, UXMLNodeType &type) const {
|
| if(0<=i && i<fChildren.size()) {
|
| const UObject *node=(const UObject *)fChildren.elementAt(i);
|
| - if(dynamic_cast<const UXMLElement *>(node)!=NULL) {
|
| + if(CR_DYNAMIC_CAST<const UXMLElement *>(node)!=NULL) {
|
| type=UXML_NODE_TYPE_ELEMENT;
|
| } else {
|
| type=UXML_NODE_TYPE_STRING;
|
| @@ -788,7 +788,7 @@
|
| int32_t count=fChildren.size();
|
| while(i<count) {
|
| node=(const UObject *)fChildren.elementAt(i++);
|
| - const UXMLElement *elem=dynamic_cast<const UXMLElement *>(node);
|
| + const UXMLElement *elem=CR_DYNAMIC_CAST<const UXMLElement *>(node);
|
| if(elem!=NULL) {
|
| return elem;
|
| }
|
| @@ -809,7 +809,7 @@
|
| int32_t i, count=fChildren.size();
|
| for(i=0; i<count; ++i) {
|
| node=(const UObject *)fChildren.elementAt(i);
|
| - const UXMLElement *elem=dynamic_cast<const UXMLElement *>(node);
|
| + const UXMLElement *elem=CR_DYNAMIC_CAST<const UXMLElement *>(node);
|
| if(elem!=NULL) {
|
| if(p==elem->fName) {
|
| return elem;
|
|
|