Skip to content

Commit

Permalink
Add "default" case for "switch" block to eliminate Xcode warnings
Browse files Browse the repository at this point in the history
Xcode is complaining enumerations values not handled.
  • Loading branch information
Zhao Wang committed Dec 12, 2015
1 parent 3292072 commit 84052f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ - (void)setupIconPointsWithType:(BMACircleIconType)type {
points.bma_left = CGPointMake(points.bma_centre.x - (self.outterCircleRadius - self.horizontalMargin), points.bma_centre.y);
points.bma_right = CGPointMake(points.bma_centre.x + (self.outterCircleRadius - self.horizontalMargin), points.bma_centre.y);
break;
default:
break;
}

self.iconPoints = points;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ - (void)setProgressStatus:(BMACircleProgressStatus)progressStatus {
break;
case BMACircleProgressStatusCompleted:
break;
default:
break;
}
}

Expand Down Expand Up @@ -167,6 +169,8 @@ - (void)updateIconViewType {
case BMACircleProgressStatusCompleted:
[self.circleIconView setType:BMACircleIconTypeCheck];
break;
default:
break;
}
}

Expand Down

0 comments on commit 84052f3

Please sign in to comment.