1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:48:12 +00:00

LibCore: Convert CHttpJob to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 12:03:22 +02:00
parent 953cb4e436
commit 6b347747f2
8 changed files with 45 additions and 13 deletions

View file

@ -10,9 +10,9 @@ CHttpRequest::~CHttpRequest()
{
}
CNetworkJob* CHttpRequest::schedule()
ObjectPtr<CNetworkJob> CHttpRequest::schedule()
{
auto* job = new CHttpJob(*this);
auto job = CHttpJob::construct(*this);
job->start();
return job;
}