From 2fb190868c9901e0516264e37bc27ce220d33571 Mon Sep 17 00:00:00 2001 From: Brandon Butler Date: Wed, 23 May 2018 15:26:20 -0400 Subject: [PATCH] Update RMAppReceipt.m Fix warning: Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior --- RMStore/Optional/RMAppReceipt.m | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/RMStore/Optional/RMAppReceipt.m b/RMStore/Optional/RMAppReceipt.m index 68aa7147..50ec38b3 100644 --- a/RMStore/Optional/RMAppReceipt.m +++ b/RMStore/Optional/RMAppReceipt.m @@ -117,17 +117,17 @@ - (instancetype)initWithASN1Data:(NSData*)asn1Data switch (type) { case RMAppReceiptASN1TypeBundleIdentifier: - _bundleIdentifierData = data; - _bundleIdentifier = RMASN1ReadUTF8String(&s, length); + self->_bundleIdentifierData = data; + self->_bundleIdentifier = RMASN1ReadUTF8String(&s, length); break; case RMAppReceiptASN1TypeAppVersion: - _appVersion = RMASN1ReadUTF8String(&s, length); + self->_appVersion = RMASN1ReadUTF8String(&s, length); break; case RMAppReceiptASN1TypeOpaqueValue: - _opaqueValue = data; + self->_opaqueValue = data; break; case RMAppReceiptASN1TypeHash: - _receiptHash = data; + self->_receiptHash = data; break; case RMAppReceiptASN1TypeInAppPurchaseReceipt: { @@ -136,12 +136,12 @@ - (instancetype)initWithASN1Data:(NSData*)asn1Data break; } case RMAppReceiptASN1TypeOriginalAppVersion: - _originalAppVersion = RMASN1ReadUTF8String(&s, length); + self->_originalAppVersion = RMASN1ReadUTF8String(&s, length); break; case RMAppReceiptASN1TypeExpirationDate: { NSString *string = RMASN1ReadIA5SString(&s, length); - _expirationDate = [RMAppReceipt formatRFC3339String:string]; + self->_expirationDate = [RMAppReceipt formatRFC3339String:string]; break; } } @@ -336,42 +336,42 @@ - (instancetype)initWithASN1Data:(NSData*)asn1Data switch (type) { case RMAppReceiptASN1TypeQuantity: - _quantity = RMASN1ReadInteger(&p, length); + self->_quantity = RMASN1ReadInteger(&p, length); break; case RMAppReceiptASN1TypeProductIdentifier: - _productIdentifier = RMASN1ReadUTF8String(&p, length); + self->_productIdentifier = RMASN1ReadUTF8String(&p, length); break; case RMAppReceiptASN1TypeTransactionIdentifier: - _transactionIdentifier = RMASN1ReadUTF8String(&p, length); + self->_transactionIdentifier = RMASN1ReadUTF8String(&p, length); break; case RMAppReceiptASN1TypePurchaseDate: { NSString *string = RMASN1ReadIA5SString(&p, length); - _purchaseDate = [RMAppReceipt formatRFC3339String:string]; + self->_purchaseDate = [RMAppReceipt formatRFC3339String:string]; break; } case RMAppReceiptASN1TypeOriginalTransactionIdentifier: - _originalTransactionIdentifier = RMASN1ReadUTF8String(&p, length); + self->_originalTransactionIdentifier = RMASN1ReadUTF8String(&p, length); break; case RMAppReceiptASN1TypeOriginalPurchaseDate: { NSString *string = RMASN1ReadIA5SString(&p, length); - _originalPurchaseDate = [RMAppReceipt formatRFC3339String:string]; + self->_originalPurchaseDate = [RMAppReceipt formatRFC3339String:string]; break; } case RMAppReceiptASN1TypeSubscriptionExpirationDate: { NSString *string = RMASN1ReadIA5SString(&p, length); - _subscriptionExpirationDate = [RMAppReceipt formatRFC3339String:string]; + self->_subscriptionExpirationDate = [RMAppReceipt formatRFC3339String:string]; break; } case RMAppReceiptASN1TypeWebOrderLineItemID: - _webOrderLineItemID = RMASN1ReadInteger(&p, length); + self->_webOrderLineItemID = RMASN1ReadInteger(&p, length); break; case RMAppReceiptASN1TypeCancellationDate: { NSString *string = RMASN1ReadIA5SString(&p, length); - _cancellationDate = [RMAppReceipt formatRFC3339String:string]; + self->_cancellationDate = [RMAppReceipt formatRFC3339String:string]; break; } }