Skip to content

Commit 7e73bb5

Browse files
Merge pull request #169 from TakayukiHoshi1984/modify_linking_setting
DPLinkingSystemProfileのコンストラクタ修正
2 parents b34bf67 + e70c46d commit 7e73bb5

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

dConnectDevicePlugin/dConnectDeviceLinking/dConnectDeviceLinking/Classes/profile/DPLinkingSystemProfile.m

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@ @interface DPLinkingSystemProfile () <DConnectSystemProfileDataSource>
1313

1414
@end
1515

16-
@implementation DPLinkingSystemProfile {
17-
NSString *_version;
18-
}
16+
@implementation DPLinkingSystemProfile
1917

20-
- (instancetype) initWithVersion:(NSString *)version
18+
- (instancetype) init
2119
{
2220
self = [super init];
2321
if (self) {
24-
_version = version;
2522
self.dataSource = self;
2623

2724
__weak typeof(self) weakSelf = self;
@@ -38,7 +35,7 @@ - (instancetype) initWithVersion:(NSString *)version
3835

3936
+ (instancetype) systemProfile
4037
{
41-
return [[DPLinkingSystemProfile alloc] init];
38+
return [DPLinkingSystemProfile new];
4239
}
4340

4441
#pragma mark - DConnectSystemProfileDataSource

0 commit comments

Comments
 (0)