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

Unified Diff: chrome/utility/safe_browsing/mac/udif.cc

Issue 2194613002: chrome/utility/safe_browsing: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « chrome/utility/safe_browsing/mac/hfs.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/safe_browsing/mac/udif.cc
diff --git a/chrome/utility/safe_browsing/mac/udif.cc b/chrome/utility/safe_browsing/mac/udif.cc
index 2a51bdbe81504cc07bc40dff3962c64311add9c3..f91b8b168b6621b4615465f69835a61aaa31ec22 100644
--- a/chrome/utility/safe_browsing/mac/udif.cc
+++ b/chrome/utility/safe_browsing/mac/udif.cc
@@ -457,25 +457,25 @@ bool UDIFParser::ParseBlkx() {
return false;
}
- auto resource_fork = base::mac::GetValueFromDictionary<CFDictionaryRef>(
+ auto* resource_fork = base::mac::GetValueFromDictionary<CFDictionaryRef>(
plist.get(), CFSTR("resource-fork"));
if (!resource_fork) {
DLOG(ERROR) << "No resource-fork entry in plist";
return false;
}
- auto blkx = base::mac::GetValueFromDictionary<CFArrayRef>(resource_fork,
- CFSTR("blkx"));
+ auto* blkx = base::mac::GetValueFromDictionary<CFArrayRef>(resource_fork,
+ CFSTR("blkx"));
if (!blkx) {
DLOG(ERROR) << "No blkx entry in resource-fork";
return false;
}
for (CFIndex i = 0; i < CFArrayGetCount(blkx); ++i) {
- auto block_dictionary =
+ auto* block_dictionary =
base::mac::CFCast<CFDictionaryRef>(CFArrayGetValueAtIndex(blkx, i));
- auto data = base::mac::GetValueFromDictionary<CFDataRef>(block_dictionary,
- CFSTR("Data"));
+ auto* data = base::mac::GetValueFromDictionary<CFDataRef>(block_dictionary,
+ CFSTR("Data"));
if (!data) {
DLOG(ERROR) << "Skipping block " << i
<< " because it has no Data section";
« no previous file with comments | « chrome/utility/safe_browsing/mac/hfs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698