diff options
author | Richard Hansen <cyanogenmod@rhansen.org> | 2013-02-28 16:20:13 -0500 |
---|---|---|
committer | Richard Hansen <cyanogenmod@rhansen.org> | 2013-02-28 16:24:42 -0500 |
commit | 425325c48d72df437bd734ba0820403204fa79ae (patch) | |
tree | b166517a7ec2678d3ca69caf551fbf5fe5722c89 /src | |
parent | 5faf7513c8d8f457221c14372fe6f55eff1c4eca (diff) | |
download | external_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.cpp | 4 |
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); |