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

Commit 6d09d547 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Fix google-explicit-constructor warnings.

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

Change-Id: Ic550902559b0800bdcfc0b1d301313a909434eed
parent c4c4a1e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ private:
        virtual ~SpriteImpl();

    public:
        SpriteImpl(const sp<SpriteController> controller);
        explicit SpriteImpl(const sp<SpriteController> controller);

        virtual void setIcon(const SpriteIcon& icon);
        virtual void setVisible(bool visible);
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ namespace android {

class NativeInputApplicationHandle : public InputApplicationHandle {
public:
    NativeInputApplicationHandle(jweak objWeak);
    explicit NativeInputApplicationHandle(jweak objWeak);
    virtual ~NativeInputApplicationHandle();

    jobject getInputApplicationHandleObjLocalRef(JNIEnv* env);