Inline the SDScaledImageForPath function so it doesn't polute the stack traces
This commit is contained in:
parent
4c51485e22
commit
c50be70558
|
@ -37,4 +37,4 @@
|
||||||
#define SDDispatchQueueSetterSementics assign
|
#define SDDispatchQueueSetterSementics assign
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData);
|
extern inline UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData);
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#error SDWebImage is ARC only. Either turn on ARC for the project or use -fobjc-arc flag
|
#error SDWebImage is ARC only. Either turn on ARC for the project or use -fobjc-arc flag
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData)
|
inline UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData)
|
||||||
{
|
{
|
||||||
if (!imageOrData)
|
if (!imageOrData)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue