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

Unified Diff: chrome/utility/safe_browsing/mac/hfs.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 | « no previous file | chrome/utility/safe_browsing/mac/udif.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/safe_browsing/mac/hfs.cc
diff --git a/chrome/utility/safe_browsing/mac/hfs.cc b/chrome/utility/safe_browsing/mac/hfs.cc
index 9a27223be375a2cc0455541c930eff3ffb27d15e..aab64c890c4351168b21d4b07e517b36538bfe82 100644
--- a/chrome/utility/safe_browsing/mac/hfs.cc
+++ b/chrome/utility/safe_browsing/mac/hfs.cc
@@ -512,7 +512,7 @@ bool HFSBTreeIterator::Next() {
GetLeafData<uint16_t>(); // keyLength
auto parent_id = OSSwapBigToHostInt32(*GetLeafData<uint32_t>());
auto key_string_length = OSSwapBigToHostInt16(*GetLeafData<uint16_t>());
- auto key_string =
+ auto* key_string =
reinterpret_cast<uint16_t*>(&leaf_data_[current_leaf_offset_]);
for (uint16_t i = 0;
i < key_string_length;
@@ -528,7 +528,7 @@ bool HFSBTreeIterator::Next() {
current_leaf_offset_ -= sizeof(int16_t);
switch (current_record_.record_type) {
case kHFSPlusFolderRecord: {
- auto folder = GetLeafData<HFSPlusCatalogFolder>();
+ auto* folder = GetLeafData<HFSPlusCatalogFolder>();
ConvertBigEndian(folder);
++leaf_records_read_;
++current_leaf_records_read_;
@@ -554,7 +554,7 @@ bool HFSBTreeIterator::Next() {
break;
}
case kHFSPlusFileRecord: {
- auto file = GetLeafData<HFSPlusCatalogFile>();
+ auto* file = GetLeafData<HFSPlusCatalogFile>();
ConvertBigEndian(file);
++leaf_records_read_;
++current_leaf_records_read_;
@@ -621,7 +621,7 @@ bool HFSBTreeIterator::ReadCurrentLeaf() {
return false;
}
- auto leaf = reinterpret_cast<BTNodeDescriptor*>(&leaf_data_[0]);
+ auto* leaf = reinterpret_cast<BTNodeDescriptor*>(&leaf_data_[0]);
ConvertBigEndian(leaf);
if (leaf->kind != kBTLeafNode) {
DLOG(ERROR) << "Node " << current_leaf_number_ << " is not a leaf";
« no previous file with comments | « no previous file | chrome/utility/safe_browsing/mac/udif.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698