Inline the SDScaledImageForPath function so it doesn't polute the stack traces

This commit is contained in:
Olivier Poitrey 2013-03-25 15:02:00 +01:00
parent 4c51485e22
commit c50be70558
2 changed files with 2 additions and 2 deletions

View File

@ -37,4 +37,4 @@
#define SDDispatchQueueSetterSementics assign
#endif
extern UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData);
extern inline UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData);

View File

@ -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)
{