From 425325c48d72df437bd734ba0820403204fa79ae Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 28 Feb 2013 16:20:13 -0500 Subject: skia: SkPaint::SkPaint(): don't cast away const This will help avoid bugs like the one fixed in change-id: Iaeb2b84b6696e3eebf29617dfdc41c55e5226776. Change-Id: I892423e18f9927f827393d0ff0c923259e07389c --- src/core/SkPaint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp index 221be3d..e7d017e 100644 --- a/src/core/SkPaint.cpp +++ b/src/core/SkPaint.cpp @@ -177,9 +177,9 @@ extern "C" { SkPaint::SkPaint(const SkPaint& src) { //Note: need to update this when SkPaint struture/size is changed! if(sizeof(src) == 76){ - memcpy_76((int*)this, (int*)&src); + memcpy_76((int*)this, (const int*)&src); } else { - memcpy((int*)this, (int*)&src, sizeof(src)); + memcpy((int*)this, (const int*)&src, sizeof(src)); } SkSafeRef(fTypeface); -- cgit v1.1