Debug Windows compiler complaint fixes
http://codereview.appspot.com/6208055/
git-svn-id: http://skia.googlecode.com/svn/trunk@3924 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp
index d1ed217..000ebea 100644
--- a/tests/PDFPrimitivesTest.cpp
+++ b/tests/PDFPrimitivesTest.cpp
@@ -7,8 +7,6 @@
*/
-#include <string>
-
#include "Test.h"
#include "SkData.h"
#include "SkFlate.h"
@@ -89,9 +87,9 @@
static void SimpleCheckObjectOutput(skiatest::Reporter* reporter,
SkPDFObject* obj,
- const std::string& expectedResult) {
- CheckObjectOutput(reporter, obj, expectedResult.c_str(),
- expectedResult.length(), true, false);
+ const char* expectedResult) {
+ CheckObjectOutput(reporter, obj, expectedResult,
+ strlen(expectedResult), true, false);
}
static void TestPDFStream(skiatest::Reporter* reporter) {