summaryrefslogtreecommitdiff
path: root/Userland/Shell/Job.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Shell/Job.h')
-rw-r--r--Userland/Shell/Job.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Shell/Job.h b/Userland/Shell/Job.h
index d99219f91e..fd84b6c94e 100644
--- a/Userland/Shell/Job.h
+++ b/Userland/Shell/Job.h
@@ -27,7 +27,7 @@ struct LocalFrame;
class Job : public RefCounted<Job> {
public:
- static NonnullRefPtr<Job> create(pid_t pid, pid_t pgid, String cmd, u64 job_id, AST::Command&& command) { return adopt(*new Job(pid, pgid, move(cmd), job_id, move(command))); }
+ static NonnullRefPtr<Job> create(pid_t pid, pid_t pgid, String cmd, u64 job_id, AST::Command&& command) { return adopt_ref(*new Job(pid, pgid, move(cmd), job_id, move(command))); }
~Job()
{