aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-10 22:46:08 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-10 22:46:08 +0000
commit6d254ee4aceabb7aeb86c5615139676dfe224a89 (patch)
tree4d483e43079fece901a3573a46747cd8a1c6e491
parent74b88b70b8f78e09d223e3f8357e18e6043fa3aa (diff)
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
-rw-r--r--tests/FrontBufferedStreamTest.cpp2
1 files changed, 1 insertions, 1 deletions
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<SkStream> buffered(SkFrontBufferedStream::Create(&stream, bufferSize));
test_hasLength(reporter, *buffered.get(), stream);
}