diff options
author | 2012-03-19 21:04:52 +0000 | |
---|---|---|
committer | 2012-03-19 21:04:52 +0000 | |
commit | f8aa18c08d97cdc98a85a0422d3415822a73949c (patch) | |
tree | 85787d97063b4f8faebfa9b2d8d190e0e3ce5c24 /tests | |
parent | d8b599cb264b2228e0fb1bee6d3604be6d3c2855 (diff) |
Compile with c++0x.
http://codereview.appspot.com/5841074/
git-svn-id: http://skia.googlecode.com/svn/trunk@3434 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PDFPrimitivesTest.cpp | 4 | ||||
-rw-r--r-- | tests/ScalarTest.cpp | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp index f206062fa3..d1ed217c54 100644 --- a/tests/PDFPrimitivesTest.cpp +++ b/tests/PDFPrimitivesTest.cpp @@ -276,8 +276,8 @@ static void TestPDFPrimitives(skiatest::Reporter* reporter) { strlen(expectedResult), false, false); // Test that we correctly handle characters with the high-bit set. - char highBitCString[] = {0xDE, 0xAD, 'b', 'e', 0xEF, 0}; - SkRefPtr<SkPDFName> highBitName = new SkPDFName(highBitCString); + const unsigned char highBitCString[] = {0xDE, 0xAD, 'b', 'e', 0xEF, 0}; + SkRefPtr<SkPDFName> highBitName = new SkPDFName((const char*)highBitCString); highBitName->unref(); // SkRefPtr and new both took a reference. const char highBitExpectedResult[] = "/#DE#ADbe#EF"; CheckObjectOutput(reporter, highBitName.get(), highBitExpectedResult, diff --git a/tests/ScalarTest.cpp b/tests/ScalarTest.cpp index d2c05aba6f..981fb0f5f2 100644 --- a/tests/ScalarTest.cpp +++ b/tests/ScalarTest.cpp @@ -78,16 +78,16 @@ static void test_isfinite(skiatest::Reporter* reporter) { test_floatclass(reporter, -nan, kNaN); const Rec data[] = { - { 0, true }, - { 1, true }, - { -1, true }, - { max * 0.75, true }, - { max, true }, - { -max * 0.75, true }, - { -max, true }, - { inf, false }, - { -inf, false }, - { nan, false }, + { 0, true }, + { 1, true }, + { -1, true }, + { max * 0.75f, true }, + { max, true }, + { -max * 0.75f, true }, + { -max, true }, + { inf, false }, + { -inf, false }, + { nan, false }, }; const IsFiniteProc1 gProc1[] = { |