diff options
author | msarett <msarett@google.com> | 2015-03-16 08:47:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-16 08:47:55 -0700 |
commit | fdc310855dbf04ffb33787f5c0d76fef90b303d4 (patch) | |
tree | 2a06521e5529b2789a3797f812cf2c65d5ec23de | |
parent | 3675874468de7228944ce21922e6ec863f5f2310 (diff) |
fix for invalid for loop syntax broke build
NOTREECHECKS=true
NOTRY=true
TBR=
BUG=skia:
Review URL: https://codereview.chromium.org/1007373003
-rw-r--r-- | src/codec/SkCodec.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp index 9b0feae78f..d557087c01 100644 --- a/src/codec/SkCodec.cpp +++ b/src/codec/SkCodec.cpp @@ -25,7 +25,8 @@ SkCodec* SkCodec::NewFromStream(SkStream* stream) { if (!stream) { return NULL; } - for (DecoderProc proc : gDecoderProcs) { + for (uint32_t i = 0; i < SK_ARRAY_COUNT(gDecoderProcs); i++) { + DecoderProc proc = gDecoderProcs[i]; const bool correctFormat = proc.IsFormat(stream); if (!stream->rewind()) { return NULL; |