Add some out qualifiers to NSError** parameters, matching the OS X 10.7 API diffs. They seem to have missed a lot - this change should have been made on every NSError ** to stop ARC from using the complicated copy-and-writeback semantics, but only a small number of changes are documented. It's possible that this is just an error in the docs, so someone with 10.7 should check.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33668 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2011-07-31 19:12:01 +00:00
parent 1aaba6c0d5
commit dc0d933256
2 changed files with 6 additions and 6 deletions

View file

@ -342,7 +342,7 @@ GS_EXPORT NSString* const NSUndefinedKeyException;
*/
- (BOOL) validateValue: (id*)aValue
forKey: (NSString*)aKey
error: (NSError**)anError;
error: (out NSError**)anError;
/**
* Returns the result of calling -validateValue:forKey:error: on the receiver
@ -351,7 +351,7 @@ GS_EXPORT NSString* const NSUndefinedKeyException;
*/
- (BOOL) validateValue: (id*)aValue
forKeyPath: (NSString*)aKey
error: (NSError**)anError;
error: (out NSError**)anError;
/**
* Returns the value associated with the supplied key as an object.

View file

@ -265,20 +265,20 @@ typedef NSUInteger NSPropertyListFormat;
+ (NSData *) dataWithPropertyList: (id)aPropertyList
format: (NSPropertyListFormat)aFormat
options: (NSPropertyListWriteOptions)anOption
error: (NSError**)error;
error: (out NSError**)error;
+ (id) propertyListWithData: (NSData*)data
options: (NSPropertyListReadOptions)anOption
format: (NSPropertyListFormat*)aFormat
error: (NSError**)error;
error: (out NSError**)error;
+ (id) propertyListWithStream: (NSInputStream*)stream
options: (NSPropertyListReadOptions)anOption
format: (NSPropertyListFormat*)aFormat
error: (NSError**)error;
error: (out NSError**)error;
+ (NSInteger) writePropertyList: (id)aPropertyList
toStream: (NSOutputStream*)stream
format: (NSPropertyListFormat)aFormat
options: (NSPropertyListWriteOptions)anOption
error: (NSError**)error;
error: (out NSError**)error;
#endif
@end