Permalink
Browse files

Prepare for automatic ARC conversion

  • Loading branch information...
stig committed Aug 28, 2011
1 parent 26a2afe commit 037d3d13f219fea176c8ca9f759f31e77472a9da
Showing with 3 additions and 8 deletions.
  1. +1 −6 Classes/SBJsonStreamParser.m
  2. +2 −2 SBJson.xcodeproj/project.pbxproj
@@ -168,8 +168,7 @@ - (void) handleTokenNotExpectedHere: (sbjson_token_t) tok {
}
- (SBJsonStreamParserStatus)parse:(NSData *)data_ {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- @try {
+ @autoreleasepool {
[tokeniser appendData:data_];
for (;;) {
@@ -254,10 +253,6 @@ - (SBJsonStreamParserStatus)parse:(NSData *)data_ {
}
}
return SBJsonStreamParserComplete;
-
- }
- @finally {
- [pool drain];
}
}
@@ -777,7 +777,7 @@
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
- GCC_ENABLE_OBJC_GC = required;
+ GCC_ENABLE_OBJC_GC = supported;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "SBJsonTests/SBJsonTests-Prefix.pch";
INFOPLIST_FILE = "SBJsonTests/SBJsonTests-Info.plist";
@@ -799,7 +799,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
- GCC_ENABLE_OBJC_GC = required;
+ GCC_ENABLE_OBJC_GC = supported;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "SBJsonTests/SBJsonTests-Prefix.pch";
INFOPLIST_FILE = "SBJsonTests/SBJsonTests-Info.plist";

0 comments on commit 037d3d1

Please sign in to comment.