Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 724e0410 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Fix google-explicit-constructor warnings in media.

* Add explicit keyword to conversion constructors.
Bug: 28341362
Test: build with WITH_TIDY=1

Change-Id: I141b22bcb3caf386400b6b0403d1b231a8e7e6c4
parent 1567662f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ private:
    // When necessary, it will send out buffering events to the player.
    struct BufferingMonitor : public AHandler {
    public:
        BufferingMonitor(const sp<AMessage> &notify);
        explicit BufferingMonitor(const sp<AMessage> &notify);

        // Set up state.
        void prepare(const sp<NuCachedSource2> &cachedSource,
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ struct AImageReader : public RefBase {

    struct FrameListener : public ConsumerBase::FrameAvailableListener {
      public:
        FrameListener(AImageReader* parent) : mReader(parent) {}
        explicit FrameListener(AImageReader* parent) : mReader(parent) {}

        void onFrameAvailable(const BufferItem& item) override;