commit | 36d0ca16024820df9a12903d2ac443fabcc180bc | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Aug 09 14:31:32 2016 -0700 |
committer | Chih-hung Hsieh <chh@google.com> | Wed Aug 10 17:56:35 2016 +0000 |
tree | 51e8f285ae66ad7cb922caeb7ba8d5f1d20367e3 | |
parent | 67fbddfdc2cafd63c83d3bb55a2451d4c26f546d [diff] [blame] |
Fix clang-tidy warnings in audio and playerservice. * Add explicit keyword to conversion constructors. Bug: 28341362 * Use const reference type for read-only parameters. Bug: 30407689 Test: build with WITH_TIDY=1 Change-Id: I265f3b094e08d5705b506b3fbba51439c134af84 Merged-In: I265f3b094e08d5705b506b3fbba51439c134af84
diff --git a/media/libmediaplayerservice/HDCP.h b/media/libmediaplayerservice/HDCP.h index 26ddc86..83c61b5 100644 --- a/media/libmediaplayerservice/HDCP.h +++ b/media/libmediaplayerservice/HDCP.h
@@ -24,7 +24,7 @@ namespace android { struct HDCP : public BnHDCP { - HDCP(bool createEncryptionModule); + explicit HDCP(bool createEncryptionModule); virtual ~HDCP(); virtual status_t setObserver(const sp<IHDCPObserver> &observer);