[Win][Clang][WebKitLegacy] error: cannot pass object of non-trivial type through...
authorHironori.Fujii@sony.com <Hironori.Fujii@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Sep 2018 02:54:37 +0000 (02:54 +0000)
committerHironori.Fujii@sony.com <Hironori.Fujii@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Sep 2018 02:54:37 +0000 (02:54 +0000)
commit6ada91bed5a419486e3ef124974605a8527431b2
tree52c5a82b22f3915e6108aa96c42a790752dbc121
parent4b131735807649738a608336d030a7e31af9df30
[Win][Clang][WebKitLegacy] error: cannot pass object of non-trivial type through variadic function
https://bugs.webkit.org/show_bug.cgi?id=189612

Reviewed by Alex Christensen.

Non-trivial types can't be used as aruguments of LOG_ERROR and
ASSERT_WITH_MESSAGE.

* DefaultPolicyDelegate.cpp:
(DefaultPolicyDelegate::unableToImplementPolicyWithError): Apply
static_cast<BSTR> to convert BString.
* WebLocalizableStrings.cpp:
(copyLocalizedStringFromBundle): Convert 'key' from WTF::String to
char* by using 'key.utf8().data()'.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKitLegacy/win/ChangeLog
Source/WebKitLegacy/win/DefaultPolicyDelegate.cpp
Source/WebKitLegacy/win/WebLocalizableStrings.cpp