diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-07-01 12:20:20 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-07-01 12:20:20 -0700 |
commit | 10ab8bb0fa510bdb577adce5e67b6bf35882a9dd (patch) | |
tree | 8eda3545f6cf0807859af1794f81f468013820e3 /rsFont.h | |
parent | 0824f55dfbee792ef30e6d3bcbdfce04822e7f4f (diff) | |
download | rs-10ab8bb0fa510bdb577adce5e67b6bf35882a9dd.tar.gz |
Fix google-explicit-constructor warnings in frameworks/rs.
* Declare explicit conversion constructors.
* Add NOLINT to implicit conversion constructors.
Bug: 28341362
Test: build with clang-tidy
Change-Id: If5114de668c1c8946b8fca9cee4b2b14f95be5f1
Diffstat (limited to 'rsFont.h')
-rw-r--r-- | rsFont.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -116,7 +116,7 @@ protected: float mFontSize; uint32_t mDpi; - Font(Context *rsc); + explicit Font(Context *rsc); bool init(const char *name, float fontSize, uint32_t dpi, const void *data = nullptr, uint32_t dataLen = 0); virtual void preDestroy() const; |