Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
Fix brace style
Browse files Browse the repository at this point in the history
  • Loading branch information
mdiep committed Mar 25, 2014
1 parent 66f7d57 commit f7b1ab6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Rebel/RBLPopover.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@
//***************************************************************************

// Returns the median X value of the shared segment of the X edges of the given rects
static CGFloat RBLRectsGetMedianX(CGRect r1, CGRect r2)
{
static CGFloat RBLRectsGetMedianX(CGRect r1, CGRect r2) {
CGFloat minX = fmax(NSMinX(r1), NSMinX(r2));
CGFloat maxX = fmin(NSMaxX(r1), NSMaxX(r2));
return (minX + maxX) / 2;
}

// Returns the median X value of the shared segment of the X edges of the given rects
static CGFloat RBLRectsGetMedianY(CGRect r1, CGRect r2)
{
static CGFloat RBLRectsGetMedianY(CGRect r1, CGRect r2) {
CGFloat minY = fmax(NSMinY(r1), NSMinY(r2));
CGFloat maxY = fmin(NSMaxY(r1), NSMaxY(r2));
return (minY + maxY) / 2;
Expand Down

0 comments on commit f7b1ab6

Please sign in to comment.