0
@@ -601,9 +601,9 @@ limitations under the License.
0
Class myClass = [self class];
0
- Method method1 =
nil, method2 = nil;
0
+ Method method1 =
NULL, method2 = NULL;
0
- Method_t method1 =
nil, method2 = nil;
0
+ Method_t method1 =
NULL, method2 = NULL;
0
// First, look for the methods
0
@@ -615,17 +615,17 @@ limitations under the License.
0
method2 = class_get_instance_method(myClass, sel2);
0
// If both are found, swizzle them
0
- if ((method1 !=
nil) && (method2 != nil)) {
0
+ if ((method1 !=
NULL) && (method2 != NULL)) {
0
method_exchangeImplementations(method1, method2);
0
- if (method1 == nil) NSLog(@"swap failed: can't find %s", sel_getName(sel1));
0
- if (method2 == nil) NSLog(@"swap failed: can't find %s", sel_getName(sel2));
0
+ if (method1 == NULL) NSLog(@"swap failed: can't find %s", sel_getName(sel1));
0
+ if (method2 == NULL) NSLog(@"swap failed: can't find %s", sel_getName(sel2));
0
- if (method1 == nil) NSLog(@"swap failed: can't find %s", sel_get_name(sel1));
0
- if (method2 == nil) NSLog(@"swap failed: can't find %s", sel_get_name(sel2));
0
+ if (method1 == NULL) NSLog(@"swap failed: can't find %s", sel_get_name(sel1));
0
+ if (method2 == NULL) NSLog(@"swap failed: can't find %s", sel_get_name(sel2));
0
@@ -637,9 +637,9 @@ limitations under the License.
0
Class myClass = [self class];
0
- Method method1 =
nil, method2 = nil;
0
+ Method method1 =
NULL, method2 = NULL;
0
- Method_t method1 =
nil, method2 = nil;
0
+ Method_t method1 =
NULL, method2 = NULL;
0
// First, look for the methods
0
@@ -647,17 +647,17 @@ limitations under the License.
0
method2 = class_getClassMethod(myClass, sel2);
0
// If both are found, swizzle them
0
- if ((method1 !=
nil) && (method2 != nil)) {
0
+ if ((method1 !=
NULL) && (method2 != NULL)) {
0
method_exchangeImplementations(method1, method2);
0
- if (method1 == nil) NSLog(@"swap failed: can't find %s", sel_getName(sel1));
0
- if (method2 == nil) NSLog(@"swap failed: can't find %s", sel_getName(sel2));
0
+ if (method1 == NULL) NSLog(@"swap failed: can't find %s", sel_getName(sel1));
0
+ if (method2 == NULL) NSLog(@"swap failed: can't find %s", sel_getName(sel2));
0
- if (method1 == nil) NSLog(@"swap failed: can't find %s", sel_get_name(sel1));
0
- if (method2 == nil) NSLog(@"swap failed: can't find %s", sel_get_name(sel2));
0
+ if (method1 == NULL) NSLog(@"swap failed: can't find %s", sel_get_name(sel1));
0
+ if (method2 == NULL) NSLog(@"swap failed: can't find %s", sel_get_name(sel2));
Comments
No one has commented yet.