Skip to content
Permalink
Browse files
Try to fix the Sierra build after r223163.
* Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp:
(WebCore::convertAndValidate):

Canonical link: https://commits.webkit.org/194420@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
aestes committed Oct 11, 2017
1 parent 903d1ab commit 56011f397ed90f464fa89ca3a800e48bab466eb5
Showing 1 changed file with 3 additions and 3 deletions.
@@ -84,7 +84,7 @@ static ExceptionOr<ApplePaySessionPaymentRequest::LineItem> convertAndValidate(c
lineItem.amount = item.amount.value;
lineItem.type = item.pending ? ApplePaySessionPaymentRequest::LineItem::Type::Pending : ApplePaySessionPaymentRequest::LineItem::Type::Final;
lineItem.label = item.label;
return lineItem;
return { WTFMove(lineItem) };
}

static ExceptionOr<Vector<ApplePaySessionPaymentRequest::LineItem>> convertAndValidate(const Vector<PaymentItem>& lineItems, const String& expectedCurrency)
@@ -97,7 +97,7 @@ static ExceptionOr<Vector<ApplePaySessionPaymentRequest::LineItem>> convertAndVa
return convertedLineItem.releaseException();
result.uncheckedAppend(convertedLineItem.releaseReturnValue());
}
return result;
return { WTFMove(result) };
}

static ApplePaySessionPaymentRequest::ContactFields convert(const PaymentOptions& options)
@@ -135,7 +135,7 @@ static ExceptionOr<ApplePaySessionPaymentRequest::ShippingMethod> convertAndVali
result.amount = shippingOption.amount.value;
result.label = shippingOption.label;
result.identifier = shippingOption.id;
return result;
return { WTFMove(result) };
}

ExceptionOr<void> ApplePayPaymentHandler::convertData(JSC::ExecState& execState, JSC::JSValue&& data)

0 comments on commit 56011f3

Please sign in to comment.