diff options
author | Hoà V. DINH <dinh.viet.hoa@gmail.com> | 2016-02-12 22:01:50 -0800 |
---|---|---|
committer | Hoà V. DINH <dinh.viet.hoa@gmail.com> | 2016-02-12 22:01:50 -0800 |
commit | f1b7cd8840f6ceb2e074af3eec77d413beb6e2ec (patch) | |
tree | 6d6a7c456140de9a6f90800226addad3724e839c /src | |
parent | 7c45902910b84641201664bbfa1b4ab96d521f2c (diff) | |
parent | ce8273bb3dc25d87349505645db65996c3ca753a (diff) |
Merge pull request #1359 from kolyuchiy/mark-unavailable-initializers
Mark non-designated initializers and new as unavailable
Diffstat (limited to 'src')
-rw-r--r-- | src/objc/abstract/MCOAbstractPart.h | 2 | ||||
-rw-r--r-- | src/objc/provider/MCOMailProvider.h | 2 | ||||
-rw-r--r-- | src/objc/provider/MCONetService.h | 2 | ||||
-rw-r--r-- | src/objc/utils/MCOOperation.h | 3 |
4 files changed, 9 insertions, 0 deletions
diff --git a/src/objc/abstract/MCOAbstractPart.h b/src/objc/abstract/MCOAbstractPart.h index 0e768215..8bff41dd 100644 --- a/src/objc/abstract/MCOAbstractPart.h +++ b/src/objc/abstract/MCOAbstractPart.h @@ -113,6 +113,8 @@ namespace mailcore { /** Do not invoke this directly. */ - (instancetype) init NS_UNAVAILABLE; +/** Do not invoke this directly. */ ++ (instancetype) new NS_UNAVAILABLE; @end diff --git a/src/objc/provider/MCOMailProvider.h b/src/objc/provider/MCOMailProvider.h index f2deff4e..513d568e 100644 --- a/src/objc/provider/MCOMailProvider.h +++ b/src/objc/provider/MCOMailProvider.h @@ -89,5 +89,7 @@ /** Do not invoke this directly. */ - (instancetype) init NS_UNAVAILABLE; +/** Do not invoke this directly. */ ++ (instancetype) new NS_UNAVAILABLE; @end diff --git a/src/objc/provider/MCONetService.h b/src/objc/provider/MCONetService.h index f186e811..0d707152 100644 --- a/src/objc/provider/MCONetService.h +++ b/src/objc/provider/MCONetService.h @@ -44,5 +44,7 @@ /** Do not invoke this directly. */ - (instancetype) init NS_UNAVAILABLE; +/** Do not invoke this directly. */ ++ (instancetype) new NS_UNAVAILABLE; @end diff --git a/src/objc/utils/MCOOperation.h b/src/objc/utils/MCOOperation.h index 7e37ce34..65f77681 100644 --- a/src/objc/utils/MCOOperation.h +++ b/src/objc/utils/MCOOperation.h @@ -40,7 +40,10 @@ @interface MCOOperation (MCOUnavailable) +/** Do not invoke this directly. */ - (instancetype) init NS_UNAVAILABLE; +/** Do not invoke this directly. */ ++ (instancetype) new NS_UNAVAILABLE; @end |