From 77279cbf9bfa1732b8b4b9437a4a857c6fc18b70 Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Mon, 25 Mar 2013 12:01:45 +0000 Subject: [PATCH] Fix compiler errors/warnings in r8355 git-svn-id: http://skia.googlecode.com/svn/trunk@8357 2bbb7eff-a529-9590-31e7-b0007b416f81 --- debugger/SkDrawCommand.cpp | 2 +- debugger/SkDrawCommand.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debugger/SkDrawCommand.cpp b/debugger/SkDrawCommand.cpp index e7936a2a21..f731ed775a 100644 --- a/debugger/SkDrawCommand.cpp +++ b/debugger/SkDrawCommand.cpp @@ -290,7 +290,7 @@ DrawData::DrawData(const void* data, size_t length) { // TODO: add display of actual data? SkString* str = new SkString; - str->appendf("length: %d", length); + str->appendf("length: %d", (int) length); fInfo.push(str); } diff --git a/debugger/SkDrawCommand.h b/debugger/SkDrawCommand.h index fc812b52c4..7412c1d7bf 100644 --- a/debugger/SkDrawCommand.h +++ b/debugger/SkDrawCommand.h @@ -229,7 +229,7 @@ public: virtual ~DrawData() { delete [] fData; } virtual void execute(SkCanvas* canvas) SK_OVERRIDE; private: - void* fData; + char* fData; size_t fLength; typedef SkDrawCommand INHERITED; @@ -306,7 +306,7 @@ public: virtual ~DrawTextC() { delete [] fText; } virtual void execute(SkCanvas* canvas) SK_OVERRIDE; private: - void* fText; + char* fText; size_t fByteLength; SkScalar fX; SkScalar fY; @@ -337,7 +337,7 @@ public: virtual ~DrawTextOnPath() { delete [] fText; } virtual void execute(SkCanvas* canvas) SK_OVERRIDE; private: - void* fText; + char* fText; size_t fByteLength; SkPath fPath; SkMatrix fMatrix;