mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
iOS: convert all obj-c source code to ARC
This commit is contained in:
1 parent
4a119beb59
commit
152dc2192f
3 files changed
+7
-3
No files matched your search
@@ -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)
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
@interface iCadeReaderView : UIView<UIKeyInput> {
|
||||
UIView *inputView;
|
||||
iCadeState _iCadeState;
|
||||
id<iCadeEventDelegate> _delegate;
|
||||
id<iCadeEventDelegate> __weak _delegate;
|
||||
|
||||
struct {
|
||||
bool stateChanged:1;
|
||||
@@ -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
|
||||
@@ -49,7 +49,6 @@ static const char *OFF_STATES = "eczqtrfnmpgv";
|
||||
- (void)dealloc {
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidEnterBackgroundNotification object:nil];
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void)didEnterBackground {
|
||||
|
||||
Reference in new issue
Block a user