Commit 4058ac6b authored by vmpstr's avatar vmpstr Committed by Commit bot

base: Change auto to not deduce raw pointers.

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

R=danakj@chromium.org
BUG=554600

Review-Url: https://codereview.chromium.org/2173523002
Cr-Commit-Position: refs/heads/master@{#406961}
parent 038b9561
...@@ -1306,7 +1306,7 @@ TEST_F(FilePathTest, GetHFSDecomposedFormWithInvalidInput) { ...@@ -1306,7 +1306,7 @@ TEST_F(FilePathTest, GetHFSDecomposedFormWithInvalidInput) {
FPL("\xf0\x28\x8c\xbc"), FPL("\xf0\x28\x8c\xbc"),
FPL("\xf0\x28\x8c\x28"), FPL("\xf0\x28\x8c\x28"),
}; };
for (const auto& invalid_input : cases) { for (auto* invalid_input : cases) {
FilePath::StringType observed = FilePath::GetHFSDecomposedForm( FilePath::StringType observed = FilePath::GetHFSDecomposedForm(
invalid_input); invalid_input);
EXPECT_TRUE(observed.empty()); EXPECT_TRUE(observed.empty());
......
...@@ -11,7 +11,7 @@ namespace base { ...@@ -11,7 +11,7 @@ namespace base {
namespace trace_event { namespace trace_event {
TEST(JavaHeapDumpProviderTest, JavaHeapDump) { TEST(JavaHeapDumpProviderTest, JavaHeapDump) {
auto jhdp = JavaHeapDumpProvider::GetInstance(); auto* jhdp = JavaHeapDumpProvider::GetInstance();
MemoryDumpArgs dump_args = {MemoryDumpLevelOfDetail::DETAILED}; MemoryDumpArgs dump_args = {MemoryDumpLevelOfDetail::DETAILED};
std::unique_ptr<ProcessMemoryDump> pmd( std::unique_ptr<ProcessMemoryDump> pmd(
new ProcessMemoryDump(nullptr, dump_args)); new ProcessMemoryDump(nullptr, dump_args));
......
...@@ -66,7 +66,7 @@ bool InternalRunThreadTest() { ...@@ -66,7 +66,7 @@ bool InternalRunThreadTest() {
::CloseHandle(ready_event); ::CloseHandle(ready_event);
if (threads_.size() != kNumThreads) { if (threads_.size() != kNumThreads) {
for (const auto& thread : threads_) for (auto* thread : threads_)
::CloseHandle(thread); ::CloseHandle(thread);
::CloseHandle(start_event); ::CloseHandle(start_event);
return false; return false;
...@@ -74,7 +74,7 @@ bool InternalRunThreadTest() { ...@@ -74,7 +74,7 @@ bool InternalRunThreadTest() {
::SetEvent(start_event); ::SetEvent(start_event);
::CloseHandle(start_event); ::CloseHandle(start_event);
for (const auto& thread : threads_) { for (auto* thread : threads_) {
::WaitForSingleObject(thread, INFINITE); ::WaitForSingleObject(thread, INFINITE);
::CloseHandle(thread); ::CloseHandle(thread);
} }
......
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