Opening bracket styling
This commit is contained in:
parent
3364a981d5
commit
c4dd0eee49
|
@ -17,8 +17,7 @@
|
||||||
|
|
||||||
@implementation AutoPurgeCache
|
@implementation AutoPurgeCache
|
||||||
|
|
||||||
- (id)init
|
- (instancetype)init {
|
||||||
{
|
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) {
|
if (self) {
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(removeAllObjects) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(removeAllObjects) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
|
||||||
|
@ -26,8 +25,7 @@
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)dealloc
|
- (void)dealloc {
|
||||||
{
|
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
|
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,8 +16,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Callback for CGDataProviderRelease
|
// Callback for CGDataProviderRelease
|
||||||
static void FreeImageData(void *info, const void *data, size_t size)
|
static void FreeImageData(void *info, const void *data, size_t size) {
|
||||||
{
|
|
||||||
free((void *)data);
|
free((void *)data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue