mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 20:29:04 +08:00
Fix missing return value
This commit is contained in:
parent
ceb13b1faa
commit
afd0e39ae9
@ -133,13 +133,13 @@ void delete_cookies(wxWebView* webview, const std::string& url)
|
|||||||
for (const auto& cookie : ptree.get_child("cookies")) {
|
for (const auto& cookie : ptree.get_child("cookies")) {
|
||||||
std::string name = cookie.second.get<std::string>("name");
|
std::string name = cookie.second.get<std::string>("name");
|
||||||
std::string domain = cookie.second.get<std::string>("domain");
|
std::string domain = cookie.second.get<std::string>("domain");
|
||||||
//BOOST_LOG_TRIVIAL(debug) << "Deleting cookie: " << name << " : " << domain;
|
|
||||||
// Delete cookie by name and domain
|
// Delete cookie by name and domain
|
||||||
wxString name_and_domain = GUI::format_wxstr(L"{\"name\": \"%1%\", \"domain\": \"%2%\"}", name, domain);
|
wxString name_and_domain = GUI::format_wxstr(L"{\"name\": \"%1%\", \"domain\": \"%2%\"}", name, domain);
|
||||||
webView2->CallDevToolsProtocolMethod(L"Network.deleteCookies", name_and_domain.c_str(),
|
webView2->CallDevToolsProtocolMethod(L"Network.deleteCookies", name_and_domain.c_str(),
|
||||||
Microsoft::WRL::Callback<ICoreWebView2CallDevToolsProtocolMethodCompletedHandler>(
|
Microsoft::WRL::Callback<ICoreWebView2CallDevToolsProtocolMethodCompletedHandler>(
|
||||||
[](HRESULT errorCode, LPCWSTR resultJson) -> HRESULT { return S_OK; }).Get());
|
[](HRESULT errorCode, LPCWSTR resultJson) -> HRESULT { return S_OK; }).Get());
|
||||||
}
|
}
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
).Get());
|
).Get());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user