diff options
| author | 2019-01-02 08:10:40 -0800 | |
|---|---|---|
| committer | 2019-01-02 08:10:40 -0800 | |
| commit | 4754484fc8212996c6e1560f521552e64522b378 (patch) | |
| tree | 866135a711155750482d9766c3ba7040c12c51e4 /opengl/tests | |
| parent | c3fcbd898a8d04aedcb74eca159a7f570a9bc3b9 (diff) | |
| parent | cd6fc8c1dda34b3c359c90238c0e31057d1366c7 (diff) | |
Merge "Fix/suppress google-explicit-constructor warnings"
am: cd6fc8c1dd
Change-Id: Ib9a127b0617f2ab2582d8c35d74f68d9b7c232f8
Diffstat (limited to 'opengl/tests')
| -rw-r--r-- | opengl/tests/hwc/hwcCommit.cpp | 4 | ||||
| -rw-r--r-- | opengl/tests/hwc/hwcTestLib.h | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/opengl/tests/hwc/hwcCommit.cpp b/opengl/tests/hwc/hwcCommit.cpp index 3686dab654..0a6ff556a0 100644 --- a/opengl/tests/hwc/hwcCommit.cpp +++ b/opengl/tests/hwc/hwcCommit.cpp @@ -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; } diff --git a/opengl/tests/hwc/hwcTestLib.h b/opengl/tests/hwc/hwcTestLib.h index 922fc1990b..5a49393a77 100644 --- a/opengl/tests/hwc/hwcTestLib.h +++ b/opengl/tests/hwc/hwcTestLib.h @@ -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; |