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

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

Fix/suppress libs/* 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: I31d45e4c6ff9fa69801a14c341f2da66baf565a0
parent c0f3daa1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ protected:
    virtual ~WeakLooperCallback() { }

public:
    WeakLooperCallback(const wp<LooperCallback>& callback) :
    explicit WeakLooperCallback(const wp<LooperCallback>& callback) :
        mCallback(callback) {
    }

+3 −3
Original line number Diff line number Diff line
@@ -38,13 +38,13 @@ class EncodedBuffer
{
public:
    EncodedBuffer();
    EncodedBuffer(size_t chunkSize);
    explicit EncodedBuffer(size_t chunkSize);
    ~EncodedBuffer();

    class Pointer {
    public:
        Pointer();
        Pointer(size_t chunkSize);
        explicit Pointer(size_t chunkSize);

        size_t pos() const;
        size_t index() const;
@@ -161,7 +161,7 @@ public:
    friend class iterator;
    class iterator {
    public:
        iterator(const EncodedBuffer& buffer);
        explicit iterator(const EncodedBuffer& buffer);

        /**
         * Returns the number of bytes written in the buffer