commit | e964d4e421e2d1ca937227a580c0c837091a11e3 | [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 11:35:57 2016 -0700 |
tree | 876478fb4d5b18ddf8ba3b761440e46651b45ecb | |
parent | f6d5a13c3a7a84e35e28b9840dde0f29728b6849 [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
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerSource.h b/media/libmediaplayerservice/nuplayer/NuPlayerSource.h index 0176eafa..3a96138 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayerSource.h +++ b/media/libmediaplayerservice/nuplayer/NuPlayerSource.h
@@ -59,7 +59,7 @@ // The provides message is used to notify the player about various // events. - Source(const sp<AMessage> ¬ify) + explicit Source(const sp<AMessage> ¬ify) : mNotify(notify) { }