зеркало из https://github.com/mozilla/moz-skia.git
Use SkToBool to fix a warning.
NOTRY=true TBR=djsollen@google.com Author: scroggo@google.com Review URL: https://codereview.chromium.org/159333002 git-svn-id: http://skia.googlecode.com/svn/trunk@13389 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
74b88b70b8
Коммит
6d254ee4ac
|
@ -195,7 +195,7 @@ private:
|
|||
static void test_length_combos(skiatest::Reporter* reporter, size_t bufferSize) {
|
||||
for (int hasLen = 0; hasLen <= 1; hasLen++) {
|
||||
for (int hasPos = 0; hasPos <= 1; hasPos++) {
|
||||
LengthOptionalStream stream((bool) hasLen, (bool) hasPos);
|
||||
LengthOptionalStream stream(SkToBool(hasLen), SkToBool(hasPos));
|
||||
SkAutoTUnref<SkStream> buffered(SkFrontBufferedStream::Create(&stream, bufferSize));
|
||||
test_hasLength(reporter, *buffered.get(), stream);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче