Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix CWURLRequest & NSStringAdditions to use new api

  • Loading branch information...
commit b431b83aa9a2b4c6f1cd1ee49cec83d7d37b3bc8 1 parent 036b923
@Machx authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  Source/CWURLRequest.m
  2. +1 −1  Source/NSStringAdditions.m
View
2  Source/CWURLRequest.m
@@ -142,7 +142,7 @@ -(NSData *)startSynchronousConnection {
}
-(void)startAsynchronousConnectionWithCompletionBlock:(void (^)(NSData *data, NSError *error, NSURLResponse *response))block {
- const char *label = CWUUIDCStringPrependedWithString(@"com.Zangetsu.CWURLRequest");
+ const char *label = [CWUUIDStringPrependedWithString(@"com.Zangetsu.CWURLRequest") UTF8String];
dispatch_queue_t queue = dispatch_queue_create(label, 0);
dispatch_async(queue, ^{
NSData *data = [self startSynchronousConnection];
View
2  Source/NSStringAdditions.m
@@ -39,7 +39,7 @@ +(NSString *)cw_uuidString {
- (void)cw_enumerateConcurrentlyWithOptions:(NSStringEnumerationOptions)options
usingBlock:(void (^)(NSString *substring))block {
dispatch_group_t group = dispatch_group_create();
- const char *queueLabel = CWUUIDCStringPrependedWithString(@"com.Zangetsu.NSString_");
+ const char *queueLabel = [CWUUIDStringPrependedWithString(@"com.Zangetsu.NSString_") UTF8String];
dispatch_queue_t queue = dispatch_queue_create(queueLabel, DISPATCH_QUEUE_CONCURRENT);
[self enumerateSubstringsInRange:NSMakeRange(0, [self length])
Please sign in to comment.
Something went wrong with that request. Please try again.