Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: third_party/icu/source/i18n/rbnf.cpp

Issue 6520018: Get ICU 4.6 to be compiled without RTTI.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: do not include typeinfo at all Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/icu/source/i18n/olsontz.cpp ('k') | third_party/icu/source/i18n/rbtz.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/icu/source/i18n/rbnf.cpp
===================================================================
--- third_party/icu/source/i18n/rbnf.cpp (revision 74230)
+++ third_party/icu/source/i18n/rbnf.cpp (working copy)
@@ -5,7 +5,6 @@
*******************************************************************************
*/
-#include <typeinfo> // for 'typeid' to work
#include "unicode/rbnf.h"
@@ -874,7 +873,7 @@
return TRUE;
}
- if (typeid(*this) == typeid(other)) {
+ if (CR_TYPEID(*this) == CR_TYPEID(other)) {
const RuleBasedNumberFormat& rhs = (const RuleBasedNumberFormat&)other;
if (locale == rhs.locale &&
lenient == rhs.lenient &&
@@ -1553,7 +1552,7 @@
Collator* temp = Collator::createInstance(locale, status);
RuleBasedCollator* newCollator;
- if (U_SUCCESS(status) && (newCollator = dynamic_cast<RuleBasedCollator*>(temp)) != NULL) {
+ if (U_SUCCESS(status) && (newCollator = CR_DYNAMIC_CAST<RuleBasedCollator*>(temp)) != NULL) {
if (lenientParseRules) {
UnicodeString rules(newCollator->getRules());
rules.append(*lenientParseRules);
« no previous file with comments | « third_party/icu/source/i18n/olsontz.cpp ('k') | third_party/icu/source/i18n/rbtz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698