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

Unified Diff: src/i18n.cc

Issue 2738503008: Prepare for ICU's switch to char16_t (Closed)
Patch Set: fix format Created 3 years, 9 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 | « no previous file | src/runtime/runtime-i18n.cc » ('j') | src/runtime/runtime-i18n.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/i18n.cc
diff --git a/src/i18n.cc b/src/i18n.cc
index d2245ef34a9a319a53b4cf4b4ea05ec095fef2d5..e83bf0482c155cb8b5a34678b0fb0dddc54905bb 100644
--- a/src/i18n.cc
+++ b/src/i18n.cc
@@ -271,7 +271,8 @@ icu::DecimalFormat* CreateICUNumberFormat(
UErrorCode status_digits = U_ZERO_ERROR;
uint32_t fraction_digits = ucurr_getDefaultFractionDigits(
- currency.getTerminatedBuffer(), &status_digits);
+ reinterpret_cast<const UChar*>(currency.getTerminatedBuffer()),
+ &status_digits);
if (U_SUCCESS(status_digits)) {
number_format->setMinimumFractionDigits(fraction_digits);
number_format->setMaximumFractionDigits(fraction_digits);
« no previous file with comments | « no previous file | src/runtime/runtime-i18n.cc » ('j') | src/runtime/runtime-i18n.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698