Skip to content

Commit

Permalink
Add more smart pointers to WKOpenPanelResultListener
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=260759
rdar://problem/114481901

Reviewed by Chris Dumez.

* Source/WebKit/UIProcess/API/C/WKOpenPanelResultListener.cpp:
(filePathsFromFileURLs):

Canonical link: https://commits.webkit.org/267328@main
  • Loading branch information
abigailfox authored and ddkilzer committed Aug 26, 2023
1 parent b82a10b commit 7c6597e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static Vector<String> filePathsFromFileURLs(const API::Array& fileURLs)
filePaths.reserveInitialCapacity(size);

for (size_t i = 0; i < size; ++i) {
API::URL* apiURL = fileURLs.at<API::URL>(i);
RefPtr apiURL = fileURLs.at<API::URL>(i);
if (apiURL)
filePaths.uncheckedAppend(URL { apiURL->string() }.fileSystemPath());
}
Expand Down

0 comments on commit 7c6597e

Please sign in to comment.