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

Unified Diff: cc/ipc/cc_param_traits.cc

Issue 2102833002: cc: Fixup cc to not use auto to deduce a raw pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 | cc/layers/layer_proto_converter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/cc_param_traits.cc
diff --git a/cc/ipc/cc_param_traits.cc b/cc/ipc/cc_param_traits.cc
index 63c81f0d3dae9ccd6e165cb46441e6e3a2071923..523321864fddcffabf48a48a702903dd1c4d8894 100644
--- a/cc/ipc/cc_param_traits.cc
+++ b/cc/ipc/cc_param_traits.cc
@@ -332,7 +332,7 @@ void ParamTraits<cc::RenderPass>::Write(base::Pickle* m, const param_type& p) {
p.shared_quad_state_list.begin();
cc::SharedQuadStateList::ConstIterator last_shared_quad_state_iter =
p.shared_quad_state_list.end();
- for (const auto& quad : p.quad_list) {
+ for (auto* quad : p.quad_list) {
DCHECK(quad->rect.Contains(quad->visible_rect))
<< quad->material << " rect: " << quad->rect.ToString()
<< " visible_rect: " << quad->visible_rect.ToString();
@@ -524,13 +524,13 @@ void ParamTraits<cc::RenderPass>::Log(const param_type& p, std::string* l) {
l->append(", ");
l->append("[");
- for (const auto& shared_quad_state : p.shared_quad_state_list) {
+ for (auto* shared_quad_state : p.shared_quad_state_list) {
if (shared_quad_state != p.shared_quad_state_list.front())
l->append(", ");
LogParam(*shared_quad_state, l);
}
l->append("], [");
- for (const auto& quad : p.quad_list) {
+ for (auto* quad : p.quad_list) {
if (quad != p.quad_list.front())
l->append(", ");
switch (quad->material) {
« no previous file with comments | « no previous file | cc/layers/layer_proto_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698