Index: chrome/browser/android/vr_shell/vr_shell_gl.cc |
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.cc b/chrome/browser/android/vr_shell/vr_shell_gl.cc |
index b7e699248d55de307307762a6a2856de73e20b19..336d2b0472f4ce8c03bafe98d7629b20023598a8 100644 |
--- a/chrome/browser/android/vr_shell/vr_shell_gl.cc |
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.cc |
@@ -833,7 +833,7 @@ void VrShellGl::DrawElements( |
const gvr::Mat4f& view_proj_matrix, |
const gvr::Mat4f& view_matrix, |
const std::vector<const ContentRectangle*>& elements) { |
- for (auto& rect : elements) { |
+ for (const auto* rect : elements) { |
gvr::Mat4f transform = |
MatrixMul(view_proj_matrix, rect->transform.to_world); |
@@ -888,7 +888,7 @@ std::vector<const ContentRectangle*> VrShellGl::GetElementsInDrawOrder( |
std::vector<DistanceElementPair> zOrderedElementPairs; |
zOrderedElementPairs.reserve(elements.size()); |
- for (const auto& element : elements) { |
+ for (const auto* element : elements) { |
// Distance is the abs(z) value in view space. |
gvr::Vec3f element_position = GetTranslation(element->transform.to_world); |
float distance = |