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

Commit 5e703a6a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix google-explicit-constructor warnings in surfaceflinger."

parents a5862161 342b7607
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -38,7 +38,7 @@ class SurfaceFlinger;
class Client : public BnSurfaceComposerClient
class Client : public BnSurfaceComposerClient
{
{
public:
public:
        Client(const sp<SurfaceFlinger>& flinger);
        explicit Client(const sp<SurfaceFlinger>& flinger);
        ~Client();
        ~Client();


    status_t initCheck() const;
    status_t initCheck() const;
+1 −1
Original line number Original line Diff line number Diff line
@@ -34,7 +34,7 @@ public:
        WHITE   = 37
        WHITE   = 37
    };
    };


    Colorizer(bool enabled)
    explicit Colorizer(bool enabled)
        : mEnabled(enabled) {
        : mEnabled(enabled) {
    }
    }


+1 −1
Original line number Original line Diff line number Diff line
@@ -61,7 +61,7 @@ public:
        virtual void onDispSyncEvent(nsecs_t when) = 0;
        virtual void onDispSyncEvent(nsecs_t when) = 0;
    };
    };


    DispSync(const char* name);
    explicit DispSync(const char* name);
    ~DispSync();
    ~DispSync();


    // reset clears the resync samples and error value.
    // reset clears the resync samples and error value.
+1 −1
Original line number Original line Diff line number Diff line
@@ -32,7 +32,7 @@ public:


    inline FloatRect()
    inline FloatRect()
        : left(0), top(0), right(0), bottom(0) { }
        : left(0), top(0), right(0), bottom(0) { }
    inline FloatRect(const Rect& other)
    inline FloatRect(const Rect& other)  // NOLINT(implicit)
        : left(other.left), top(other.top), right(other.right), bottom(other.bottom) { }
        : left(other.left), top(other.top), right(other.right), bottom(other.bottom) { }


    inline float getWidth() const { return right - left; }
    inline float getWidth() const { return right - left; }
+1 −1
Original line number Original line Diff line number Diff line
@@ -56,7 +56,7 @@ typedef std::function<void(std::shared_ptr<Display>, nsecs_t)> VsyncCallback;
class Device
class Device
{
{
public:
public:
    Device(hwc2_device_t* device);
    explicit Device(hwc2_device_t* device);
    ~Device();
    ~Device();


    friend class HWC2::Display;
    friend class HWC2::Display;
Loading