File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 423
423
CLANG_WARN_EMPTY_BODY = YES;
424
424
CLANG_WARN_ENUM_CONVERSION = YES;
425
425
CLANG_WARN_INT_CONVERSION = YES;
426
- CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES;
427
426
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
428
427
CLANG_WARN_UNREACHABLE_CODE = YES;
429
428
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
468
467
CLANG_WARN_EMPTY_BODY = YES;
469
468
CLANG_WARN_ENUM_CONVERSION = YES;
470
469
CLANG_WARN_INT_CONVERSION = YES;
471
- CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES;
472
470
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
473
471
CLANG_WARN_UNREACHABLE_CODE = YES;
474
472
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
501
499
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
502
500
PRODUCT_BUNDLE_IDENTIFIER = com.google.Switch;
503
501
PRODUCT_NAME = "$(TARGET_NAME)";
504
- WARNING_CFLAGS = "";
505
502
};
506
503
name = Debug;
507
504
};
513
510
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
514
511
PRODUCT_BUNDLE_IDENTIFIER = com.google.Switch;
515
512
PRODUCT_NAME = "$(TARGET_NAME)";
516
- WARNING_CFLAGS = "";
517
513
};
518
514
name = Release;
519
515
};
Original file line number Diff line number Diff line change @@ -611,21 +611,19 @@ - (void)setValueFromThumbPosition:(CGPoint)position isTap:(BOOL)isTap {
611
611
} else {
612
612
value = [self valueForThumbPosition: position];
613
613
}
614
- __strong typeof (_delegate) strongDelegate = _delegate ;
615
- if ([strongDelegate respondsToSelector: @selector (thumbTrack:willAnimateToValue: )]) {
616
- [strongDelegate thumbTrack: self willAnimateToValue: value];
614
+ __weak MDCThumbTrack *weakSelf = self ;
615
+ if ([_delegate respondsToSelector: @selector (thumbTrack:willAnimateToValue: )]) {
616
+ [_delegate thumbTrack: self willAnimateToValue: value];
617
617
}
618
- __weak typeof (self) weakSelf = self;
619
618
[self setValue: value
620
619
animated: YES
621
620
userGenerated: YES
622
621
completion: ^{
623
- __strong typeof (weakSelf) strongSelf = weakSelf;
624
- __strong typeof (strongSelf->_delegate ) strongDelegate = strongSelf->_delegate ;
622
+ MDCThumbTrack *strongSelf = weakSelf;
625
623
[strongSelf sendDiscreteChangeAction ];
626
- if (strongSelf && [strongDelegate
624
+ if (strongSelf && [strongSelf->_delegate
627
625
respondsToSelector: @selector (thumbTrack:didAnimateToValue: )]) {
628
- [strongDelegate thumbTrack: strongSelf didAnimateToValue: value];
626
+ [strongSelf->_delegate thumbTrack: weakSelf didAnimateToValue: value];
629
627
}
630
628
}];
631
629
}
You can’t perform that action at this time.
0 commit comments