Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Commit

Permalink
Remove explicit __weak attribute on variables in MRC files
Browse files Browse the repository at this point in the history
This was never actually respected by the compiler, and with Xcode 7.3 is
now a compiler error. Note that using objc_loadWeak and objc_storeWeak
with these variables still seems to function as expected.
  • Loading branch information
briancroom committed Mar 6, 2016
1 parent 70cb21e commit 9ab7ca0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Doubles/CDRSpyInfo.mm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ @interface CDRSpyInfo ()
@end

@implementation CDRSpyInfo {
__weak id _weakOriginalObject;
id _weakOriginalObject;
}

static char *CDRSpyKey;
Expand Down
2 changes: 1 addition & 1 deletion Spec/CDRExampleGroupSpec.mm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
});

describe(@"releasing objects captured in spec blocks", ^{
__block __weak id weakCapturedObject;
__block id weakCapturedObject;

beforeEach(^{
group = [[[CDRExampleGroup alloc] initWithText:groupText] autorelease];
Expand Down
2 changes: 1 addition & 1 deletion Spec/CDRExampleSpec.mm
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

describe(@"runWithDispatcher:", ^{
__block CDRReportDispatcher *dispatcher;
__block __weak id weakCapturedObject;
__block id weakCapturedObject;

beforeEach(^{
dispatcher = nice_fake_for([CDRReportDispatcher class]);
Expand Down

0 comments on commit 9ab7ca0

Please sign in to comment.