Force StaticStringImpl constructor to use the constexpr versions of StringImplShape...
authormark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 May 2017 17:11:27 +0000 (17:11 +0000)
committermark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 May 2017 17:11:27 +0000 (17:11 +0000)
commite2e1d6fbc44af83fe2ae71cbf9e412003207d72a
tree00b60e7ade1dfbabeee1d91114aebd8ec5a32bdb
parentdcb903e1157de50a4a9881602d7e796d6e9d97ed
Force StaticStringImpl constructor to use the constexpr versions of StringImplShape constructors.
https://bugs.webkit.org/show_bug.cgi?id=171861

Reviewed by Yusuke Suzuki.

This is strictly necessary for correctness of the StaticStringImpl implementation.
We force the constructor selection by adding an extra dummy argument to the
constexpr versions of the StringImplShape constructors to disambiguate them from
the non-constexpr versions.

* wtf/text/StringImpl.h:
(WTF::StringImplShape::StringImplShape):
(WTF::StringImpl::StaticStringImpl::StaticStringImpl):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/text/StringImpl.h