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

Commit c5df0564 authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by android-build-merger
Browse files

Merge "Fix/suppress google-explicit-constructor warnings" am: cd6fc8c1 am: 4754484f

am: e1bdb45c

Change-Id: Iea1eea59b8faa5adea475588490d0fd956788ee2
parents e2a20efd e1bdb45c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ public:
    uint32_t lower(void) { return _l; }
    uint32_t upper(void) { return _u; }

    operator string();
    operator string(); // NOLINT(google-explicit-constructor)

private:
    uint32_t _l; // lower
@@ -216,7 +216,9 @@ public:
    static void double2Rational(double f, Range nRange, Range dRange,
                               Rational& lower, Rational& upper);
        
    // NOLINTNEXTLINE(google-explicit-constructor)
    operator string() const;
    // NOLINTNEXTLINE(google-explicit-constructor)
    operator double() const { return (double) _n / (double) _d; }


+4 −4
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ class ColorFract {
    float c2(void) const { return _c2; }
    float c3(void) const { return _c3; }

    operator std::string();
    operator std::string(); // NOLINT(google-explicit-constructor)

  private:
    float _c1;
@@ -71,7 +71,7 @@ class ColorFract {
class ColorRGB {
  public:
    ColorRGB(): _r(0.0), _g(0.0), _b(0.0) {};
    ColorRGB(float f): _r(f), _g(f), _b(f) {}; // Gray, NOLINT(implicit)
    ColorRGB(float f): _r(f), _g(f), _b(f) {}; // Gray, NOLINT(google-explicit-constructor)
    ColorRGB(float r, float g, float b): _r(r), _g(g), _b(b) {};
    float r(void) const { return _r; }
    float g(void) const { return _g; }
@@ -93,8 +93,8 @@ class HwcTestDim {
    void setWidth(uint32_t w) { _w = w; }
    void setHeight(uint32_t h) { _h = h; }

    operator std::string();
    operator hwc_rect() const;
    operator std::string(); // NOLINT(google-explicit-constructor)
    operator hwc_rect() const; // NOLINT(google-explicit-constructor)

  private:
    uint32_t _w;