Skip to content

Commit

Permalink
Defined -release signature to match NSObject.
Browse files Browse the repository at this point in the history
Removed unnecessary pre decs in headers.
  • Loading branch information
Jonathan Mitchell committed Jan 20, 2012
1 parent 9842a9b commit 9334d05
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion FScriptFramework/ArrayRepBoolean.m
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ - (id)retain { retainCount++; return self;}

- (NSUInteger)retainCount { return retainCount;}

- (void)release { if (--retainCount == 0) [self dealloc];}
- (oneway void)release { if (--retainCount == 0) [self dealloc];}

- (NSArray *)subarrayWithRange:(NSRange)range
{
Expand Down
1 change: 0 additions & 1 deletion FScriptFramework/ArrayRepDouble.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@
- (void)replaceDoubleAtIndex:(NSUInteger)index withDouble:(double)aDouble;
- (enum ArrayRepType)repType;
- (FSArray *)where:(NSArray *)booleans; // precondition: booleans is actualy an array and is of same size as the receiver
- (oneway void)release;
@end
2 changes: 1 addition & 1 deletion FScriptFramework/ArrayRepDouble.m
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ - (id)retain { retainCount++; return self;}

- (NSUInteger)retainCount { return retainCount;}

- (void)release { if (--retainCount == 0) [self dealloc];}
- (oneway void)release { if (--retainCount == 0) [self dealloc];}

- (NSArray *)subarrayWithRange:(NSRange)range
{
Expand Down
1 change: 0 additions & 1 deletion FScriptFramework/ArrayRepId.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@
- (NSArray *)subarrayWithRange:(NSRange)range;
- (enum ArrayRepType)repType;
- (FSArray *)where:(NSArray *)booleans; // precondition: booleans is actualy an array and is of same size as the receiver

@end
2 changes: 1 addition & 1 deletion FScriptFramework/ArrayRepId.m
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ - (id)retain { retainCount++; return self;}

- (NSUInteger)retainCount { return retainCount;}

- (void)release { if (--retainCount == 0) [self dealloc];}
- (oneway void)release { if (--retainCount == 0) [self dealloc];}

- (NSArray *)subarrayWithRange:(NSRange)range
{
Expand Down
2 changes: 1 addition & 1 deletion FScriptFramework/FSObjectBrowserCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ -(void) dealloc

- (NSString *)label { return label; }

- (void) release
- (oneway void) release
{
//NSLog(@"release called");
[super release];
Expand Down
2 changes: 1 addition & 1 deletion FScriptFramework/FSObjectBrowserMatrix.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ - (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal
return [super retain];
}

- (void)release
- (oneway void)release
{
//NSLog([NSString stringWithFormat:@"FSObjectBrowserMatrix %p release", self]);
[super release];
Expand Down
2 changes: 1 addition & 1 deletion FScriptFramework/FSPointer.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ - (NSUInteger)retainCount
return retainCount;
}

- (void)release
- (oneway void)release
{
if (--retainCount == 0) [self dealloc];
}
Expand Down
3 changes: 0 additions & 3 deletions FScriptFramework/FSSymbolTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ enum FSContext_symbol_status {DEFINED, UNDEFINED};
- (NSString *)symbol;

- (id)value;

- (oneway void)release;

@end

struct FSContextIndex
Expand Down
2 changes: 1 addition & 1 deletion FScriptFramework/FSSymbolTable.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ - (id)retain { retainCount ++; return self;}

- (NSUInteger)retainCount { return retainCount;}

- (void)release { if (--retainCount == 0) [self dealloc];}
- (oneway void)release { if (--retainCount == 0) [self dealloc];}

- (void)setValue:(id)theValue
{
Expand Down

0 comments on commit 9334d05

Please sign in to comment.