aboutsummaryrefslogtreecommitdiff
path: root/iPhone
diff options
context:
space:
mode:
authorGravatar Sergio Campama <kaipi@google.com>2017-03-29 17:35:51 -0400
committerGravatar Sergio Campama <kaipi@google.com>2017-03-29 17:36:31 -0400
commit9822411a0fcbd5f507e017bc638a54054b503ff4 (patch)
tree733fdd90b8f2e9c185b7be857dd65269e1765faf /iPhone
parentca53d4727a2ab04e79ff8ef9482cff8185753ed5 (diff)
Remove trailing whitespaces
Diffstat (limited to 'iPhone')
-rw-r--r--iPhone/GTMRoundedRectPath.m32
1 files changed, 16 insertions, 16 deletions
diff --git a/iPhone/GTMRoundedRectPath.m b/iPhone/GTMRoundedRectPath.m
index 2ac68b2..6a64b49 100644
--- a/iPhone/GTMRoundedRectPath.m
+++ b/iPhone/GTMRoundedRectPath.m
@@ -19,8 +19,8 @@
#include <Foundation/Foundation.h>
-void GTMCGContextAddRoundRect(CGContextRef context,
- CGRect rect,
+void GTMCGContextAddRoundRect(CGContextRef context,
+ CGRect rect,
CGFloat radius) {
if (!CGRectIsEmpty(rect)) {
if (radius > 0.0) {
@@ -29,17 +29,17 @@ void GTMCGContextAddRoundRect(CGContextRef context,
CGPoint topLeft = CGPointMake(CGRectGetMinX(rect), CGRectGetMaxY(rect));
CGPoint topRight = CGPointMake(CGRectGetMaxX(rect), CGRectGetMaxY(rect));
- CGPoint bottomRight = CGPointMake(CGRectGetMaxX(rect),
+ CGPoint bottomRight = CGPointMake(CGRectGetMaxX(rect),
CGRectGetMinY(rect));
-
+
CGContextMoveToPoint(context, CGRectGetMidX(rect), CGRectGetMaxY(rect));
- CGContextAddArcToPoint(context, topLeft.x, topLeft.y, rect.origin.x,
+ CGContextAddArcToPoint(context, topLeft.x, topLeft.y, rect.origin.x,
rect.origin.y, radius);
- CGContextAddArcToPoint(context, rect.origin.x, rect.origin.y,
+ CGContextAddArcToPoint(context, rect.origin.x, rect.origin.y,
bottomRight.x, bottomRight.y, radius);
- CGContextAddArcToPoint(context, bottomRight.x, bottomRight.y,
+ CGContextAddArcToPoint(context, bottomRight.x, bottomRight.y,
topRight.x, topRight.y, radius);
- CGContextAddArcToPoint(context, topRight.x, topRight.y,
+ CGContextAddArcToPoint(context, topRight.x, topRight.y,
topLeft.x, topLeft.y, radius);
CGContextAddLineToPoint(context, CGRectGetMidX(rect), CGRectGetMaxY(rect));
} else {
@@ -48,8 +48,8 @@ void GTMCGContextAddRoundRect(CGContextRef context,
}
}
-void GTMCGPathAddRoundRect(CGMutablePathRef path,
- const CGAffineTransform *m,
+void GTMCGPathAddRoundRect(CGMutablePathRef path,
+ const CGAffineTransform *m,
CGRect rect,
CGFloat radius) {
if (!CGRectIsEmpty(rect)) {
@@ -59,17 +59,17 @@ void GTMCGPathAddRoundRect(CGMutablePathRef path,
CGPoint topLeft = CGPointMake(CGRectGetMinX(rect), CGRectGetMaxY(rect));
CGPoint topRight = CGPointMake(CGRectGetMaxX(rect), CGRectGetMaxY(rect));
- CGPoint bottomRight = CGPointMake(CGRectGetMaxX(rect),
+ CGPoint bottomRight = CGPointMake(CGRectGetMaxX(rect),
CGRectGetMinY(rect));
-
+
CGPathMoveToPoint(path, m, CGRectGetMidX(rect), CGRectGetMaxY(rect));
- CGPathAddArcToPoint(path, m, topLeft.x, topLeft.y,
+ CGPathAddArcToPoint(path, m, topLeft.x, topLeft.y,
rect.origin.x, rect.origin.y, radius);
- CGPathAddArcToPoint(path, m, rect.origin.x, rect.origin.y,
+ CGPathAddArcToPoint(path, m, rect.origin.x, rect.origin.y,
bottomRight.x, bottomRight.y, radius);
- CGPathAddArcToPoint(path, m, bottomRight.x, bottomRight.y,
+ CGPathAddArcToPoint(path, m, bottomRight.x, bottomRight.y,
topRight.x, topRight.y, radius);
- CGPathAddArcToPoint(path, m, topRight.x, topRight.y,
+ CGPathAddArcToPoint(path, m, topRight.x, topRight.y,
topLeft.x, topLeft.y, radius);
CGPathAddLineToPoint(path, m, CGRectGetMidX(rect), CGRectGetMaxY(rect));
} else {