Modernize to C++11: Use auto
key to improve code readability and maintainability.
This commit is contained in:
parent
fab02809c6
commit
04f9d35312
22 changed files with 43 additions and 61 deletions
|
@ -266,7 +266,7 @@ void DoCacheActionInIO(
|
|||
|
||||
// Call GetBackend and make the backend's ptr accessable in OnGetBackend.
|
||||
using BackendPtr = disk_cache::Backend*;
|
||||
BackendPtr* backend_ptr = new BackendPtr(nullptr);
|
||||
auto* backend_ptr = new BackendPtr(nullptr);
|
||||
net::CompletionCallback on_get_backend =
|
||||
base::Bind(&OnGetBackend, base::Owned(backend_ptr), action, callback);
|
||||
int rv = http_cache->GetBackend(backend_ptr, on_get_backend);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue