summaryrefslogtreecommitdiff
path: root/rsFont.h
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-07-01 12:20:20 -0700
committerChih-Hung Hsieh <chh@google.com>2016-07-01 12:20:20 -0700
commit10ab8bb0fa510bdb577adce5e67b6bf35882a9dd (patch)
tree8eda3545f6cf0807859af1794f81f468013820e3 /rsFont.h
parent0824f55dfbee792ef30e6d3bcbdfce04822e7f4f (diff)
downloadrs-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsFont.h b/rsFont.h
index 0f173408..3be5c3cc 100644
--- a/rsFont.h
+++ b/rsFont.h
@@ -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;