Skip to content

Commit

Permalink
iOS: convert all obj-c source code to ARC
Browse files Browse the repository at this point in the history
  • Loading branch information
KentuckyCompass committed Jan 1, 2018
1 parent 4a119be commit 152dc21
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -692,6 +692,11 @@ elseif(IOS)

set_source_files_properties(ios/AppDelegate.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
set_source_files_properties(ios/ViewController.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
set_source_files_properties(ios/iOSCoreAudio.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
set_source_files_properties(ios/PPSSPPUIApplication.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
set_source_files_properties(ios/iCade/iCadeReaderView.m PROPERTIES COMPILE_FLAGS -fobjc-arc)
set_source_files_properties(ios/main.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)


set(TargetBin PPSSPP)
elseif(USING_QT_UI)
Expand Down
4 changes: 2 additions & 2 deletions ios/iCade/iCadeReaderView.h
Expand Up @@ -50,7 +50,7 @@
@interface iCadeReaderView : UIView<UIKeyInput> {
UIView *inputView;
iCadeState _iCadeState;
id<iCadeEventDelegate> _delegate;
id<iCadeEventDelegate> __weak _delegate;

struct {
bool stateChanged:1;
Expand All @@ -60,7 +60,7 @@
}

@property (nonatomic, assign) iCadeState iCadeState;
@property (nonatomic, assign) id<iCadeEventDelegate> delegate;
@property (nonatomic, weak) id<iCadeEventDelegate> delegate;
@property (nonatomic, assign) BOOL active;

@end
1 change: 0 additions & 1 deletion ios/iCade/iCadeReaderView.m
Expand Up @@ -49,7 +49,6 @@ - (id)initWithFrame:(CGRect)frame {
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidEnterBackgroundNotification object:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];
[super dealloc];
}

- (void)didEnterBackground {
Expand Down

0 comments on commit 152dc21

Please sign in to comment.