Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: include/core/SkRRect.h

Issue 12699002: Upstream changes from Android. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/core/SkRRect.h
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h
index d6187f415aff223404982f32338873e547418520..17ba386cd9949f2d88c5e37411d23a062cc92342 100644
--- a/include/core/SkRRect.h
+++ b/include/core/SkRRect.h
@@ -188,12 +188,14 @@ public:
friend bool operator==(const SkRRect& a, const SkRRect& b) {
return a.fRect == b.fRect &&
reed1 2013/03/08 16:00:39 use asScalars() instead of the casts.
djsollen 2013/03/08 16:25:39 Done.
- SkScalarsEqual((SkScalar*) a.fRadii, (SkScalar*) b.fRadii, 8);
+ SkScalarsEqual(SkTCast<const SkScalar*>(a.fRadii),
+ SkTCast<const SkScalar*>(b.fRadii), 8);
}
friend bool operator!=(const SkRRect& a, const SkRRect& b) {
return a.fRect != b.fRect ||
- !SkScalarsEqual((SkScalar*) a.fRadii, (SkScalar*) b.fRadii, 8);
+ !SkScalarsEqual(SkTCast<const SkScalar*>(a.fRadii),
+ SkTCast<const SkScalar*>(b.fRadii), 8);
}
/**

Powered by Google App Engine
This is Rietveld 408576698