commit | d19d994770a04f02c204affd29985c5aeaa58baa | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Mon Aug 29 14:21:14 2016 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Mon Aug 29 14:21:14 2016 -0700 |
tree | 15224cbe7fce560c768f9dc16279e8913b94cd51 | |
parent | 1567662f5a709398004cf509fb3f382f0c76f5b1 [diff] [blame] |
Fix google-explicit-constructor warnings in camera. * Add explicit keyword to conversion constructors. Bug: 28341362 Test: build with WITH_TIDY=1 Change-Id: I61f9b5b2b6e13e0c6561327bc8dfe69c9cfc5ba5
diff --git a/services/camera/libcameraservice/device3/Camera3OutputStream.h b/services/camera/libcameraservice/device3/Camera3OutputStream.h index 7f7d6d2..46c1465 100644 --- a/services/camera/libcameraservice/device3/Camera3OutputStream.h +++ b/services/camera/libcameraservice/device3/Camera3OutputStream.h
@@ -46,7 +46,7 @@ uint32_t combinedUsage; size_t totalBufferCount; bool isConfigured; - StreamInfo(int id = CAMERA3_STREAM_ID_INVALID, + explicit StreamInfo(int id = CAMERA3_STREAM_ID_INVALID, int setId = CAMERA3_STREAM_SET_ID_INVALID, uint32_t w = 0, uint32_t h = 0,