Opening bracket styling

This commit is contained in:
Bogdan Poplauschi 2016-06-02 17:43:59 +03:00 committed by Bogdan Poplauschi
parent 3364a981d5
commit c4dd0eee49
2 changed files with 3 additions and 6 deletions

View File

@ -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];
} }

View File

@ -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);
} }