summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio/Git/GitRepo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/DevTools/HackStudio/Git/GitRepo.cpp')
-rw-r--r--Userland/DevTools/HackStudio/Git/GitRepo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/DevTools/HackStudio/Git/GitRepo.cpp b/Userland/DevTools/HackStudio/Git/GitRepo.cpp
index 50506fd13a..f42f832994 100644
--- a/Userland/DevTools/HackStudio/Git/GitRepo.cpp
+++ b/Userland/DevTools/HackStudio/Git/GitRepo.cpp
@@ -20,7 +20,7 @@ GitRepo::CreateResult GitRepo::try_to_create(const LexicalPath& repository_root)
return { CreateResult::Type::NoGitRepo, nullptr };
}
- return { CreateResult::Type::Success, adopt(*new GitRepo(repository_root)) };
+ return { CreateResult::Type::Success, adopt_ref(*new GitRepo(repository_root)) };
}
RefPtr<GitRepo> GitRepo::initialize_repository(const LexicalPath& repository_root)
@@ -30,7 +30,7 @@ RefPtr<GitRepo> GitRepo::initialize_repository(const LexicalPath& repository_roo
return {};
VERIFY(git_repo_exists(repository_root));
- return adopt(*new GitRepo(repository_root));
+ return adopt_ref(*new GitRepo(repository_root));
}
Vector<LexicalPath> GitRepo::unstaged_files() const