mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibCore: Convert CHttpJob to ObjectPtr
This commit is contained in:
parent
953cb4e436
commit
6b347747f2
8 changed files with 45 additions and 13 deletions
|
@ -21,10 +21,10 @@ void BoardListModel::update()
|
|||
CHttpRequest request;
|
||||
request.set_url("http://a.4cdn.org/boards.json");
|
||||
|
||||
auto* job = request.schedule();
|
||||
m_pending_job = request.schedule();
|
||||
|
||||
job->on_finish = [job, this](bool success) {
|
||||
auto* response = job->response();
|
||||
m_pending_job->on_finish = [this](bool success) {
|
||||
auto* response = m_pending_job->response();
|
||||
dbg() << "Board list download finished, success=" << success << ", response=" << response;
|
||||
|
||||
if (!success)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue