From c50be7055811f3855c8e993c1ef4f6b113693686 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Mon, 25 Mar 2013 15:02:00 +0100 Subject: [PATCH] Inline the SDScaledImageForPath function so it doesn't polute the stack traces --- SDWebImage/SDWebImageCompat.h | 2 +- SDWebImage/SDWebImageCompat.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SDWebImage/SDWebImageCompat.h b/SDWebImage/SDWebImageCompat.h index 927bff47..a0750456 100644 --- a/SDWebImage/SDWebImageCompat.h +++ b/SDWebImage/SDWebImageCompat.h @@ -37,4 +37,4 @@ #define SDDispatchQueueSetterSementics assign #endif -extern UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData); +extern inline UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData); diff --git a/SDWebImage/SDWebImageCompat.m b/SDWebImage/SDWebImageCompat.m index a803478a..1ff3afbe 100644 --- a/SDWebImage/SDWebImageCompat.m +++ b/SDWebImage/SDWebImageCompat.m @@ -12,7 +12,7 @@ #error SDWebImage is ARC only. Either turn on ARC for the project or use -fobjc-arc flag #endif -UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData) +inline UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData) { if (!imageOrData) {