aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Hansen <cyanogenmod@rhansen.org>2013-02-28 16:20:13 -0500
committerRichard Hansen <cyanogenmod@rhansen.org>2013-02-28 16:24:42 -0500
commit425325c48d72df437bd734ba0820403204fa79ae (patch)
treeb166517a7ec2678d3ca69caf551fbf5fe5722c89 /src
parent5faf7513c8d8f457221c14372fe6f55eff1c4eca (diff)
downloadexternal_skia-425325c48d72df437bd734ba0820403204fa79ae.zip
external_skia-425325c48d72df437bd734ba0820403204fa79ae.tar.gz
external_skia-425325c48d72df437bd734ba0820403204fa79ae.tar.bz2
skia: SkPaint::SkPaint(): don't cast away const
This will help avoid bugs like the one fixed in change-id: Iaeb2b84b6696e3eebf29617dfdc41c55e5226776. Change-Id: I892423e18f9927f827393d0ff0c923259e07389c
Diffstat (limited to 'src')
-rw-r--r--src/core/SkPaint.cpp4
1 files 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);