diff options
author | Hal Canary <halcanary@google.com> | 2017-07-12 11:59:17 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-20 17:43:52 +0000 |
commit | 9a0e39054ced312eef691472b1d845bcef656c46 (patch) | |
tree | 6be222a885fc584deeed8c41e87b83c96c7836b7 /src/codec/SkGifCodec.cpp | |
parent | 80ace82be1308dbc3f45adc95e395e121b0021d2 (diff) |
sk_sp: act as if operator bool() not implicit.
Change-Id: Icd426a162ca0c778db7b3373efcb2c546da50273
Reviewed-on: https://skia-review.googlesource.com/22543
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/codec/SkGifCodec.cpp')
-rw-r--r-- | src/codec/SkGifCodec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkGifCodec.cpp b/src/codec/SkGifCodec.cpp index 7b31a618ea..df472b9ee7 100644 --- a/src/codec/SkGifCodec.cpp +++ b/src/codec/SkGifCodec.cpp @@ -165,7 +165,7 @@ void SkGifCodec::initializeColorTable(const SkImageInfo& dstInfo, int frameIndex } sk_sp<SkColorTable> currColorTable = fReader->getColorTable(colorTableColorType, frameIndex); - fCurrColorTableIsReal = currColorTable; + fCurrColorTableIsReal = static_cast<bool>(currColorTable); if (!fCurrColorTableIsReal) { // This is possible for an empty frame. Create a dummy with one value (transparent). SkPMColor color = SK_ColorTRANSPARENT; |