Commit ae7d4b87 authored by vmpstr's avatar vmpstr Committed by Commit bot

chrome/browser/safe_browsing: Change auto to not deduce raw pointers.

This patch updates the code to prevent auto deducing to a raw pointer.

R=mattm@chromium.org
BUG=554600

Review-Url: https://codereview.chromium.org/2194653002
Cr-Commit-Position: refs/heads/master@{#408720}
parent 5cacab3a
......@@ -139,7 +139,7 @@ int ExamineByteRangeDiff(uint8_t* disk_start,
if (*disk_start == *mem_start)
continue;
auto modification = state->module_state->add_modification();
auto* modification = state->module_state->add_modification();
// Store the address at which the modification starts on disk, relative to
// the beginning of the image.
modification->set_file_offset(
......
......@@ -63,7 +63,7 @@ class MacSignatureEvaluatorTest : public testing::Test {
bool SetupXattrs(const base::FilePath& path) {
char sentinel = 'A';
for (const auto& xattr : xattrs) {
for (auto* xattr : xattrs) {
std::vector<uint8_t> buf(10);
memset(&buf[0], sentinel++, buf.size());
if (setxattr(path.value().c_str(), xattr, &buf[0], buf.size(), 0, 0) != 0)
......@@ -322,7 +322,7 @@ TEST_F(MacSignatureEvaluatorTest, ModifiedBundleTest) {
EXPECT_EQ(6, mainmenunib->signature().xattr_size());
// Manually convert the global xattrs array to a vector
std::vector<std::string> xattrs_known;
for (const auto& xattr : xattrs)
for (auto* xattr : xattrs)
xattrs_known.push_back(xattr);
std::vector<std::string> xattrs_seen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment