| Index: base/i18n/string_compare.cc
|
| diff --git a/base/i18n/string_compare.cc b/base/i18n/string_compare.cc
|
| index 1ac7284359ca7a849ff3d721bb667fa1a4f4b2b2..2851e7d2dce1e4a724af636ec448a2ac1d8eacd2 100644
|
| --- a/base/i18n/string_compare.cc
|
| +++ b/base/i18n/string_compare.cc
|
| @@ -12,12 +12,11 @@ namespace i18n {
|
|
|
| // Compares the character data stored in two different string16 strings by
|
| // specified Collator instance.
|
| -UCollationResult CompareString16WithCollator(const icu::Collator* collator,
|
| +UCollationResult CompareString16WithCollator(const icu::Collator& collator,
|
| const string16& lhs,
|
| const string16& rhs) {
|
| - DCHECK(collator);
|
| UErrorCode error = U_ZERO_ERROR;
|
| - UCollationResult result = collator->compare(
|
| + UCollationResult result = collator.compare(
|
| static_cast<const UChar*>(lhs.c_str()), static_cast<int>(lhs.length()),
|
| static_cast<const UChar*>(rhs.c_str()), static_cast<int>(rhs.length()),
|
| error);
|
|
|