Index: base/i18n/character_encoding.cc |
diff --git a/base/i18n/character_encoding.cc b/base/i18n/character_encoding.cc |
index 05d2f50fff216b66cdf805a1c92ade49c9642e74..a1068c3c52141627e7985cda3f9a4d2fb4ae7a69 100644 |
--- a/base/i18n/character_encoding.cc |
+++ b/base/i18n/character_encoding.cc |
@@ -25,12 +25,12 @@ const char* const kCanonicalEncodingNames[] = { |
} // namespace |
std::string GetCanonicalEncodingNameByAliasName(const std::string& alias_name) { |
- for (auto& encoding_name : kCanonicalEncodingNames) { |
+ for (auto* encoding_name : kCanonicalEncodingNames) { |
if (alias_name == encoding_name) |
return alias_name; |
} |
static const char* kStandards[3] = {"HTML", "MIME", "IANA"}; |
- for (auto& standard : kStandards) { |
+ for (auto* standard : kStandards) { |
UErrorCode error_code = U_ZERO_ERROR; |
const char* canonical_name = |
ucnv_getStandardName(alias_name.c_str(), standard, &error_code); |