Skip to content

Commit

Permalink
Merge pull request #120 from klundberg/master
Browse files Browse the repository at this point in the history
Resolving clang analyzer issues found in Xcode5
  • Loading branch information
kcharwood committed Sep 25, 2013
2 parents 3bad8b2 + 13a624d commit 97bb075
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
case MMCenterViewControllerSectionLeftViewState:
case MMCenterViewControllerSectionRightViewState:{
UIViewController * sideDrawerViewController;
MMDrawerSide drawerSide;
MMDrawerSide drawerSide = MMDrawerSideNone;
if(indexPath.section == MMCenterViewControllerSectionLeftViewState){
sideDrawerViewController = self.mm_drawerController.leftDrawerViewController;
drawerSide = MMDrawerSideLeft;
Expand Down
2 changes: 1 addition & 1 deletion MMDrawerController/MMDrawerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ -(void)updateDrawerVisualStateForDrawerSide:(MMDrawerSide)drawerSide percentVisi
- (void)applyOvershootScaleTransformForDrawerSide:(MMDrawerSide)drawerSide percentVisible:(CGFloat)percentVisible{

if (percentVisible >= 1.f) {
CATransform3D transform;
CATransform3D transform = CATransform3DIdentity;
UIViewController * sideDrawerViewController = [self sideDrawerViewControllerForSide:drawerSide];
if(drawerSide == MMDrawerSideLeft) {
transform = CATransform3DMakeScale(percentVisible, 1.f, 1.f);
Expand Down
2 changes: 1 addition & 1 deletion MMDrawerController/MMDrawerVisualState.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ +(MMDrawerControllerDrawerVisualStateBlock)swingingDoorVisualStateBlock{
MMDrawerControllerDrawerVisualStateBlock visualStateBlock =
^(MMDrawerController * drawerController, MMDrawerSide drawerSide, CGFloat percentVisible){
UIViewController * sideDrawerViewController;
CGPoint anchorPoint = CGPointMake(0.5, 0.5);
CGPoint anchorPoint;
CGFloat maxDrawerWidth = 0.0;
CGFloat xOffset;
CGFloat angle = 0.0;
Expand Down

0 comments on commit 97bb075

Please sign in to comment.