diff options
author | 2016-09-28 23:09:52 +0000 | |
---|---|---|
committer | 2016-09-28 23:09:52 +0000 | |
commit | d2c6b7fd1e769ad14097bbfb6665dbd146437636 (patch) | |
tree | cec1bf4087e50b05f4b8480034b2d6851e6f5835 | |
parent | e021dd660e2b00b1164b91fb5968791eb0e29b91 (diff) | |
parent | e7f4cb46c4fb5e9b76d48929d20825319e15af49 (diff) |
Merge "Fix google-explicit-constructor warnings in gui and ui." am: 170454b0fa am: 5a283bbd40
am: e7f4cb46c4
Change-Id: I46d36b040e143dd5eedae7597ec7875ab920ac7b
-rw-r--r-- | include/gui/BufferQueue.h | 2 | ||||
-rw-r--r-- | include/gui/ConsumerBase.h | 2 | ||||
-rw-r--r-- | include/gui/IGraphicBufferProducer.h | 2 | ||||
-rw-r--r-- | include/gui/Surface.h | 2 | ||||
-rw-r--r-- | include/ui/Fence.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/include/gui/BufferQueue.h b/include/gui/BufferQueue.h index fe4b1fa830..266f0aa501 100644 --- a/include/gui/BufferQueue.h +++ b/include/gui/BufferQueue.h @@ -60,7 +60,7 @@ public: // weak references. class ProxyConsumerListener : public BnConsumerListener { public: - ProxyConsumerListener(const wp<ConsumerListener>& consumerListener); + explicit ProxyConsumerListener(const wp<ConsumerListener>& consumerListener); virtual ~ProxyConsumerListener(); virtual void onFrameAvailable(const BufferItem& item) override; virtual void onFrameReplaced(const BufferItem& item) override; diff --git a/include/gui/ConsumerBase.h b/include/gui/ConsumerBase.h index 0490c3cc5b..de61662fe0 100644 --- a/include/gui/ConsumerBase.h +++ b/include/gui/ConsumerBase.h @@ -101,7 +101,7 @@ protected: // buffers from the given IGraphicBufferConsumer. // The controlledByApp flag indicates that this consumer is under the application's // control. - ConsumerBase(const sp<IGraphicBufferConsumer>& consumer, bool controlledByApp = false); + explicit ConsumerBase(const sp<IGraphicBufferConsumer>& consumer, bool controlledByApp = false); // onLastStrongRef gets called by RefBase just before the dtor of the most // derived class. It is used to clean up the buffers so that ConsumerBase diff --git a/include/gui/IGraphicBufferProducer.h b/include/gui/IGraphicBufferProducer.h index de5a51a5d7..f0b0182376 100644 --- a/include/gui/IGraphicBufferProducer.h +++ b/include/gui/IGraphicBufferProducer.h @@ -294,7 +294,7 @@ public: struct QueueBufferInput : public Flattenable<QueueBufferInput> { friend class Flattenable<QueueBufferInput>; - inline QueueBufferInput(const Parcel& parcel); + explicit inline QueueBufferInput(const Parcel& parcel); // timestamp - a monotonically increasing value in nanoseconds // isAutoTimestamp - if the timestamp was synthesized at queue time // dataSpace - description of the contents, interpretation depends on format diff --git a/include/gui/Surface.h b/include/gui/Surface.h index f4a22cb733..489d5ea7bf 100644 --- a/include/gui/Surface.h +++ b/include/gui/Surface.h @@ -66,7 +66,7 @@ public: * the controlledByApp flag indicates that this Surface (producer) is * controlled by the application. This flag is used at connect time. */ - Surface(const sp<IGraphicBufferProducer>& bufferProducer, bool controlledByApp = false); + explicit Surface(const sp<IGraphicBufferProducer>& bufferProducer, bool controlledByApp = false); /* getIGraphicBufferProducer() returns the IGraphicBufferProducer this * Surface was created with. Usually it's an error to use the diff --git a/include/ui/Fence.h b/include/ui/Fence.h index b431bd52aa..a4c1df72bc 100644 --- a/include/ui/Fence.h +++ b/include/ui/Fence.h @@ -53,7 +53,7 @@ public: // Construct a new Fence object to manage a given fence file descriptor. // When the new Fence object is destructed the file descriptor will be // closed. - Fence(int fenceFd); + explicit Fence(int fenceFd); // Check whether the Fence has an open fence file descriptor. Most Fence // methods treat an invalid file descriptor just like a valid fence that |