commit | 3ef324d11cc4b6f84c147998fcf02c3a528fc2b8 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Dec 11 11:48:12 2018 -0800 |
committer | Chih-Hung Hsieh <chh@google.com> | Tue Dec 11 11:48:12 2018 -0800 |
tree | 9c31c781e4172fb511af7552838c6a63b0f04ac9 | |
parent | 14c577fac81b8fdcc75e4bf9243f16bd624ba58b [diff] [blame] |
Fix performance-for-range-copy warnings Bug: 30413223 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance* Change-Id: Ia63c695575d2602ff7e67db874d423b99f4daeef
diff --git a/services/camera/libcameraservice/api2/CameraDeviceClient.cpp b/services/camera/libcameraservice/api2/CameraDeviceClient.cpp index 84428c2..567b15f 100644 --- a/services/camera/libcameraservice/api2/CameraDeviceClient.cpp +++ b/services/camera/libcameraservice/api2/CameraDeviceClient.cpp
@@ -252,7 +252,7 @@ Vector<int32_t> outputStreamIds; std::vector<std::string> requestedPhysicalIds; if (request.mSurfaceList.size() > 0) { - for (sp<Surface> surface : request.mSurfaceList) { + for (const sp<Surface>& surface : request.mSurfaceList) { if (surface == 0) continue; int32_t streamId;