)]}'
{
  "commit": "ab82ba691e23bbf82e0de823078afcc40c3b710b",
  "tree": "cc8d512eb023c05b902d6e8ef1f8f332b8ad4dd2",
  "parents": [
    "094f8e6f0c43b8eda25a5a3dddaa9856da1edc1b"
  ],
  "author": {
    "name": "Andrew Weintraub",
    "email": "asweintraub@google.com",
    "time": "Wed Apr 01 21:58:45 2020 +0000"
  },
  "committer": {
    "name": "Chromium commit bot",
    "email": "commit-bot@chromium.org",
    "time": "Wed Apr 01 21:58:45 2020 +0000"
  },
  "message": "Change for loops to use const refs where possible.\n\nLSC: Change for loops to use const refs, per performance-for-range-copy\nclang-tidy.\n\nThis CL optimizes C++11 range-based for loops where the variable is\ncopied in each iteration but it would suffice to obtain it by const\nreference. This is only applied to loop variables of types that are\nexpensive to copy which means they are not trivially copyable or have\nnon-trivial copy constructor or destructor.\n\nTo ensure that it is safe to replace the copy with a const reference\nthe following heuristic is employed:\n  The loop variable is const qualified.\n  The loop variable is not const, but only const methods or operators\n    are invoked on it, or it is used as const reference or value\n    argument in constructors or function calls.\n\nPiperOrigin-RevId: 304179354\nChange-Id: I54a9409ba8fd97ed4bbdc0a930277761c27cc04c\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/68110\nReviewed-by: Tom Sepez \u003ctsepez@chromium.org\u003e\nReviewed-by: Lei Zhang \u003cthestig@chromium.org\u003e\nCommit-Queue: Tom Sepez \u003ctsepez@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b999f5cda076ec2b0f924f596295d3ff61d064e0",
      "old_mode": 33188,
      "old_path": "core/fxcrt/xml/cfx_xmlelement.cpp",
      "new_id": "47455078ab219cf2aed1c8b1ef5797141b666c99",
      "new_mode": 33188,
      "new_path": "core/fxcrt/xml/cfx_xmlelement.cpp"
    },
    {
      "type": "modify",
      "old_id": "a3ddbef8adcd7c008c65e3719e7f0756bbaf9d61",
      "old_mode": 33188,
      "old_path": "samples/pdfium_test_event_helper.cc",
      "new_id": "a97d49018996b35b9c96aa7cf07952598ce128c0",
      "new_mode": 33188,
      "new_path": "samples/pdfium_test_event_helper.cc"
    }
  ]
}
