Add missing std::optional to ApplePayPaymentRequest.lineItems
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Dec 2016 22:01:12 +0000 (22:01 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Dec 2016 22:01:12 +0000 (22:01 +0000)
commit00b9989ecb1f2685bf66e9837bf08444fc493d5a
tree584a97fde825ebc8459abadac49cb6f2c4fcd1cf
parent732c029acc1b73701bfd954cdc7286fd90765e64
Add missing std::optional to ApplePayPaymentRequest.lineItems
https://bugs.webkit.org/show_bug.cgi?id=166468

Patch by Sam Weinig <sam@webkit.org> on 2016-12-23
Reviewed by Alexey Proskuryakov.

No functional change, but is more consistent.

* Modules/applepay/ApplePayPaymentRequest.h:
Remove unnecessary #include of <heap/Strong.h>, add std::optional to lineItems.

* Modules/applepay/ApplePaySession.cpp:
(WebCore::convertAndValidate):
Update to deal with optional line items, remove unnecessary comment.

* Modules/applepay/ApplePaySession.h:
Remove unneeded forward declarations.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/applepay/ApplePayPaymentRequest.h
Source/WebCore/Modules/applepay/ApplePaySession.cpp
Source/WebCore/Modules/applepay/ApplePaySession.h