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

Commit f43b02c4 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by Chih-hung Hsieh
Browse files

Fix/suppress google-explicit-constructor warnings

* Add explicit to conversion constructors/operators

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Iac8f3aa14cd04861f6bcbab56b0dfc28c9a89e53
parent dab0fc82
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -661,7 +661,7 @@ private:
 */
class PooledInputEventFactory : public InputEventFactoryInterface {
public:
    PooledInputEventFactory(size_t maxPoolSize = 20);
    explicit PooledInputEventFactory(size_t maxPoolSize = 20);
    virtual ~PooledInputEventFactory();

    virtual KeyEvent* createKeyEvent();
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ private:
        };

        struct Property {
            inline Property(int32_t property = 0, int32_t metaState = 0) :
            inline explicit Property(int32_t property = 0, int32_t metaState = 0) :
                    property(property), metaState(metaState) { }

            int32_t property;
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ class DelayedTask : public Thread {
    int mDelayMillis;

public:
    DelayedTask(int delayMillis) : mDelayMillis(delayMillis) { }
    explicit DelayedTask(int delayMillis) : mDelayMillis(delayMillis) { }

protected:
    virtual ~DelayedTask() { }