From 6d254ee4aceabb7aeb86c5615139676dfe224a89 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Mon, 10 Feb 2014 22:46:08 +0000 Subject: 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 --- tests/FrontBufferedStreamTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/FrontBufferedStreamTest.cpp b/tests/FrontBufferedStreamTest.cpp index 6905bcda79..cb11b12de8 100644 --- a/tests/FrontBufferedStreamTest.cpp +++ b/tests/FrontBufferedStreamTest.cpp @@ -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 buffered(SkFrontBufferedStream::Create(&stream, bufferSize)); test_hasLength(reporter, *buffered.get(), stream); } -- cgit v1.2.3