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

Unified Diff: base/i18n/character_encoding.cc

Issue 2691573003: base: Remove auto raw pointer deduction. (Closed)
Patch Set: update Created 3 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 | « no previous file | base/memory/memory_pressure_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | base/memory/memory_pressure_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698