Skip to content

Commit

Permalink
Changing typeof(self) for MSWeakTimer* to fix a compile error for a u…
Browse files Browse the repository at this point in the history
…ser since it's equivalent anyway (Fixes #6)
  • Loading branch information
JaviSoto committed Oct 10, 2013
1 parent 09b1d56 commit 81eaaef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MSWeakTimer.m
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ - (void)schedule
{
[self resetTimerProperties];

__weak typeof(self) weakSelf = self;
__weak MSWeakTimer *weakSelf = self;

dispatch_source_set_event_handler(self.timer, ^{
[weakSelf timerFired];
Expand Down

0 comments on commit 81eaaef

Please sign in to comment.