Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix for problem with ARC trying to retain a BOOL swizzled return value

  • Loading branch information...
commit 944ba969a9e618a96fbdfd9634f7f702bfe4cdea 1 parent 0067c25
Angel G. Olloqui authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 src/plugins/dropbox/fixes/AGDBSession.m
10 src/plugins/dropbox/fixes/AGDBSession.m
@@ -58,18 +58,18 @@ static BOOL UIApplication_canOpenURL(id self, SEL _cmd, NSURL *url) {
58 58 return NO;
59 59 }
60 60
61   - return (BOOL)UIApplication_canOpenURL_original(self, _cmd, url);
  61 + void *ret = (__bridge void *)UIApplication_canOpenURL_original(self, _cmd, url);
  62 + return (BOOL)ret;
62 63 }
63 64
64 65 static IMP UIApplicationDelegate_handleOpenURL_original;
65 66 static BOOL UIApplicationDelegate_handleOpenURL(id self, SEL _cmd, UIApplication *application, NSURL *url, NSString *sourceApplication, id annotation) {
66   - BOOL handled = NO;
  67 + void *ret = 0;
67 68
68 69 if (UIApplicationDelegate_handleOpenURL_original) {
69   - handled = (BOOL)UIApplicationDelegate_handleOpenURL_original(self, _cmd, application, url, sourceApplication, annotation);
  70 + ret = (__bridge void *)UIApplicationDelegate_handleOpenURL_original(self, _cmd, application, url, sourceApplication, annotation);
70 71 }
71   -
72   - return [AGImageCheckerDropboxPlugin handleOpenURL:url] || handled;
  72 + return [AGImageCheckerDropboxPlugin handleOpenURL:url] || (BOOL) ret;
73 73 }
74 74
75 75 @end

0 comments on commit 944ba96

Please sign in to comment.
Something went wrong with that request. Please try again.