Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove vestigial __autoreleasing ownership qualifiers on NSError **

  • Loading branch information...
commit d467548ec69c8ba854d16009c45665cc20c7ca56 1 parent 9c18d58
Gwendal Roué authored
2  Guides/delegate.md
View
@@ -142,7 +142,7 @@ It conforms to GRMustacheTagDelegate, obviously, but also to the [GRMustacheRend
@implementation UppercaseTagDelegate
// GRMustacheRendering
-- (NSString *)renderForMustacheTag:(GRMustacheTag *)tag context:(GRMustacheContext *)context HTMLSafe:(BOOL *)HTMLSafe error:(NSError *__autoreleasing *)error
+- (NSString *)renderForMustacheTag:(GRMustacheTag *)tag context:(GRMustacheContext *)context HTMLSafe:(BOOL *)HTMLSafe error:(NSError **)error
{
// Render the Mustache tag with an extended context
context = [context contextByAddingTagDelegate:self];
4 Guides/rendering_objects.md
View
@@ -195,7 +195,7 @@ Your rendering objects can thus delegate their rendering to the tag they are giv
```objc
id data = @{
- @"twice": [GRMustacheRendering renderingObjectWithBlock:^NSString *(GRMustacheTag *tag, GRMustacheContext *context, BOOL *HTMLSafe, NSError *__autoreleasing *error) {
+ @"twice": [GRMustacheRendering renderingObjectWithBlock:^NSString *(GRMustacheTag *tag, GRMustacheContext *context, BOOL *HTMLSafe, NSError **error) {
NSMutableString *buffer = [NSMutableString string];
[buffer appendString:[tag renderContentWithContext:context HTMLSafe:HTMLSafe error:error]];
[buffer appendString:[tag renderContentWithContext:context HTMLSafe:HTMLSafe error:error]];
@@ -519,7 +519,7 @@ id customHelperLibrary = @{
// `list` is a filter that takes an array, and returns a rendering object:
@"list": [GRMustacheFilter filterWithBlock:^id(NSArray *items) {
- return [GRMustacheRendering renderingObjectWithBlock:^NSString *(GRMustacheTag *tag, GRMustacheContext *context, BOOL *HTMLSafe, NSError *__autoreleasing *error) {
+ return [GRMustacheRendering renderingObjectWithBlock:^NSString *(GRMustacheTag *tag, GRMustacheContext *context, BOOL *HTMLSafe, NSError **error) {
NSMutableString *buffer = [NSMutableString string];
2  Guides/sample_code/indexes.md
View
@@ -113,7 +113,7 @@ Rendering objects take full responsability of their rendering. Our will render t
//
// So let's return an object that does custom rendering.
- return [GRMustache renderingObjectWithBlock:^NSString *(GRMustacheTag *tag, GRMustacheContext *context, BOOL *HTMLSafe, NSError *__autoreleasing *error)
+ return [GRMustache renderingObjectWithBlock:^NSString *(GRMustacheTag *tag, GRMustacheContext *context, BOOL *HTMLSafe, NSError **error)
{
NSMutableString *buffer = [NSMutableString string];
2  Guides/sample_code/indexes/GRMustacheIndexes/PositionFilter.m
View
@@ -38,7 +38,7 @@ - (id)transformedValue:(NSArray *)array
* So let's provide an object that does custom rendering.
*/
- return [GRMustache renderingObjectWithBlock:^NSString *(GRMustacheTag *tag, GRMustacheContext *context, BOOL *HTMLSafe, NSError *__autoreleasing *error) {
+ return [GRMustache renderingObjectWithBlock:^NSString *(GRMustacheTag *tag, GRMustacheContext *context, BOOL *HTMLSafe, NSError **error) {
/**
* We are going to render the tag once for each item. We need a buffer
2  src/classes/GRMustacheLocalizer.m
View
@@ -86,7 +86,7 @@ - (id)transformedValue:(id)object
/**
* Support for {{# localize }}...{{ value }}...{{ value }}...{{/ localize }}
*/
-- (NSString *)renderForMustacheTag:(GRMustacheTag *)tag context:(GRMustacheContext *)context HTMLSafe:(BOOL *)HTMLSafe error:(NSError *__autoreleasing *)error
+- (NSString *)renderForMustacheTag:(GRMustacheTag *)tag context:(GRMustacheContext *)context HTMLSafe:(BOOL *)HTMLSafe error:(NSError **)error
{
/**
* Perform a first rendering of the section tag, that will turn variable
Please sign in to comment.
Something went wrong with that request. Please try again.