Commit 9ccf9f00 authored by zandobersek@gmail.com's avatar zandobersek@gmail.com

Unreviewed GTK build fix after r159129.

* UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
(webkit_file_chooser_request_select_files): Use ImmutableArray::create() instead.
* UIProcess/API/gtk/WebKitWebViewGroup.cpp:
(toImmutableArray): Ditto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159134 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bb2ed332
2013-11-12 Zan Dobersek <zdobersek@igalia.com>
Unreviewed GTK build fix after r159129.
* UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
(webkit_file_chooser_request_select_files): Use ImmutableArray::create() instead.
* UIProcess/API/gtk/WebKitWebViewGroup.cpp:
(toImmutableArray): Ditto.
2013-11-12 Anders Carlsson <andersca@apple.com>
Stop using WKArrayCreate internally
......
......@@ -314,7 +314,7 @@ void webkit_file_chooser_request_select_files(WebKitFileChooserRequest* request,
g_ptr_array_add(selectedFiles.get(), 0);
// Select the files in WebCore and update local private attributes.
request->priv->listener->chooseFiles(ImmutableArray::adopt(choosenFiles).get());
request->priv->listener->chooseFiles(ImmutableArray::create(std::move(choosenFiles)).get());
request->priv->selectedFiles = selectedFiles;
request->priv->handledRequest = true;
}
......
......@@ -236,7 +236,7 @@ static PassRefPtr<ImmutableArray> toImmutableArray(const char* const* list)
entries.append(WebString::createFromUTF8String(*list));
list++;
}
return ImmutableArray::adopt(entries);
return ImmutableArray::create(std::move(entries));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment