Use default std::optional if it is provided
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 May 2018 01:00:18 +0000 (01:00 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 May 2018 01:00:18 +0000 (01:00 +0000)
commit7ca4eb59f94467f5de08156d7f5146018dfeba1c
treee0e0e427c8b84687c12b313e8614bc2f3925b2a9
parent7de6f9a54cf2664a6f49a315c6280e0bc45e2166
Use default std::optional if it is provided
https://bugs.webkit.org/show_bug.cgi?id=185159

Reviewed by Michael Catanzaro.

Source/WebKit:

* Shared/SandboxExtension.h:
(WebKit::SandboxExtension::Handle::decode):
* Shared/TouchBarMenuItemData.cpp:
(WebKit::TouchBarMenuItemData::decode):

Source/WTF:

* wtf/Expected.h:
* wtf/Optional.h:
Do not use <optional> for clang currently.
(WTF::valueOrCompute):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/Expected.h
Source/WTF/wtf/Optional.h
Source/WebKit/ChangeLog
Source/WebKit/Shared/SandboxExtension.h
Source/WebKit/Shared/TouchBarMenuItemData.cpp