Skip to content

Commit 00ad64a

Browse files
author
zhangjipeng
committed
fix: fix win32 msvc build
Signed-off-by: zhangjipeng <zhangjipeng@xiaomi.com>
1 parent a5a8208 commit 00ad64a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/webcore/bindings/js/kjs_window.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,10 +943,10 @@ bool Window::isSafeScript(ExecState *exec) const
943943

944944
if (Interpreter::shouldPrintExceptions()) {
945945
printf("Unsafe JavaScript attempt to access frame with URL %s from frame with URL %s. Domains, protocols and ports must match.\n",
946-
thisURL.url().latin1(), actURL.url().latin1());
946+
thisURL.url().latin1().data(), actURL.url().latin1().data());
947947
}
948948
String message = String::format("Unsafe JavaScript attempt to access frame with URL %s from frame with URL %s. Domains, protocols and ports must match.\n",
949-
thisURL.url().latin1(), actURL.url().latin1());
949+
thisURL.url().latin1().data(), actURL.url().latin1().data());
950950
if (Page* page = frame->page())
951951
page->chrome()->addMessageToConsole(JSMessageSource, ErrorMessageLevel, message, 1, String());
952952

src/webcore/platform/network/curl/ResourceHandleManagerCurl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ bool ResourceHandleManager::startAsyncJob(ResourceHandle* job)
414414
CURLMcode ret = curl_multi_add_handle(m_curlMultiHandle, d->m_handle);
415415
if (ret && ret != CURLM_CALL_MULTI_PERFORM) {
416416
#ifndef NDEBUG
417-
printf("Error %d starting job %s\n", ret, job->request().url().url().ascii());
417+
printf("Error %d starting job %s\n", ret, job->request().url().url().ascii().data());
418418
#endif
419419
job->cancel();
420420
return false;

0 commit comments

Comments
 (0)