diff options
author | bungeman <bungeman@google.com> | 2016-08-19 08:45:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-19 08:45:37 -0700 |
commit | 01a16992cc9297d4985dc80e3177cc7475b9b385 (patch) | |
tree | 0073a83f2e60a4d960d05fc5146e3d5d05f393c2 /src/sfnt | |
parent | 9da5a5a198e5dc9148f7f30a6089377590eee55b (diff) |
Simplify embeddability test.
There is no reason to read the whole OS/2 table, and no need to spell
out the full names of all the types over and over.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2256783002
Review-Url: https://codereview.chromium.org/2256783002
Diffstat (limited to 'src/sfnt')
-rw-r--r-- | src/sfnt/SkOTTable_OS_2.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sfnt/SkOTTable_OS_2.h b/src/sfnt/SkOTTable_OS_2.h index 4a09a78605..438257805c 100644 --- a/src/sfnt/SkOTTable_OS_2.h +++ b/src/sfnt/SkOTTable_OS_2.h @@ -18,11 +18,11 @@ #pragma pack(push, 1) struct SkOTTableOS2 { - static const SK_OT_CHAR TAG0 = 'O'; - static const SK_OT_CHAR TAG1 = 'S'; - static const SK_OT_CHAR TAG2 = '/'; - static const SK_OT_CHAR TAG3 = '2'; - static const SK_OT_ULONG TAG = SkOTTableTAG<SkOTTableOS2>::value; + static constexpr SK_OT_CHAR TAG0 = 'O'; + static constexpr SK_OT_CHAR TAG1 = 'S'; + static constexpr SK_OT_CHAR TAG2 = '/'; + static constexpr SK_OT_CHAR TAG3 = '2'; + static constexpr SK_OT_ULONG TAG = SkOTTableTAG<SkOTTableOS2>::value; union Version { SK_OT_USHORT version; |