OSDN Git Service

Fix clang-tidy performance warnings in system/vold.
authorChih-Hung Hsieh <chh@google.com>
Wed, 27 Jul 2016 21:11:02 +0000 (14:11 -0700)
committerChih-Hung Hsieh <chh@google.com>
Wed, 27 Jul 2016 21:11:02 +0000 (14:11 -0700)
commit11a2ce8da33e0ec4be250fd85c47f706d6c91a10
tree8dcac528bfb17372727e475d8cfb20a7038463ea
parent786c536e84ef29b9c885f15bf8cf9b92653962ec
Fix clang-tidy performance warnings in system/vold.

* Use const reference type for for-loop index variables
  to avoid unnecessary copy.

Bug: 30413223
Change-Id: Id4d980ae8afec1374fc3be0b23f1c6a39bff86e0
Test: build with WITH_TIDY=1
Disk.cpp
TrimTask.cpp
Utils.cpp
VolumeBase.cpp
VolumeManager.cpp [changed mode: 0755->0644]