From 18b4b5c3b2f4f8768cf924ef4f3b42f2eb26347c Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Thu, 1 Nov 2018 21:57:16 -0700 Subject: [PATCH] Put that back --- Tests/ASDisplayNodeAppearanceTests.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/ASDisplayNodeAppearanceTests.mm b/Tests/ASDisplayNodeAppearanceTests.mm index 25f4a8463..3b8c1e9df 100644 --- a/Tests/ASDisplayNodeAppearanceTests.mm +++ b/Tests/ASDisplayNodeAppearanceTests.mm @@ -19,8 +19,8 @@ #import // helper functions -IMP theClass_replaceMethodWithBlock(Class theClass, SEL originalSelector, id block); -IMP theClass_replaceMethodWithBlock(Class theClass, SEL originalSelector, id block) +IMP class_replaceMethodWithBlock(Class theClass, SEL originalSelector, id block); +IMP class_replaceMethodWithBlock(Class theClass, SEL originalSelector, id block) { IMP newImplementation = imp_implementationWithBlock(block); Method method = class_getInstanceMethod(theClass, originalSelector); @@ -34,7 +34,7 @@ static dispatch_block_t modifyMethodByAddingPrologueBlockAndReturnCleanupBlock(C block(swizzedSelf); ((void(*)(id, SEL))originalImp)(swizzedSelf, originalSelector); }; - originalImp = theClass_replaceMethodWithBlock(theClass, originalSelector, blockActualSwizzle); + originalImp = class_replaceMethodWithBlock(theClass, originalSelector, blockActualSwizzle); void (^cleanupBlock)(void) = ^{ // restore original method Method method = class_getInstanceMethod(theClass, originalSelector);