Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving clang analyzer issues found in Xcode5 #120

Merged
merged 1 commit into from
Sep 25, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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