Committed by
Bogdan Poplauschi
Opening bracket styling
Showing
2 changed files
with
3 additions
and
6 deletions
@@ -17,8 +17,7 @@ | @@ -17,8 +17,7 @@ | ||
17 | 17 | ||
18 | @implementation AutoPurgeCache | 18 | @implementation AutoPurgeCache |
19 | 19 | ||
20 | -- (id)init | ||
21 | -{ | 20 | +- (instancetype)init { |
22 | self = [super init]; | 21 | self = [super init]; |
23 | if (self) { | 22 | if (self) { |
24 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(removeAllObjects) name:UIApplicationDidReceiveMemoryWarningNotification object:nil]; | 23 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(removeAllObjects) name:UIApplicationDidReceiveMemoryWarningNotification object:nil]; |
@@ -26,8 +25,7 @@ | @@ -26,8 +25,7 @@ | ||
26 | return self; | 25 | return self; |
27 | } | 26 | } |
28 | 27 | ||
29 | -- (void)dealloc | ||
30 | -{ | 28 | +- (void)dealloc { |
31 | [[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidReceiveMemoryWarningNotification object:nil]; | 29 | [[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidReceiveMemoryWarningNotification object:nil]; |
32 | 30 | ||
33 | } | 31 | } |
@@ -16,8 +16,7 @@ | @@ -16,8 +16,7 @@ | ||
16 | #endif | 16 | #endif |
17 | 17 | ||
18 | // Callback for CGDataProviderRelease | 18 | // Callback for CGDataProviderRelease |
19 | -static void FreeImageData(void *info, const void *data, size_t size) | ||
20 | -{ | 19 | +static void FreeImageData(void *info, const void *data, size_t size) { |
21 | free((void *)data); | 20 | free((void *)data); |
22 | } | 21 | } |
23 | 22 |
-
Please register or login to post a comment