summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio/ProjectFile.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/DevTools/HackStudio/ProjectFile.h')
-rw-r--r--Userland/DevTools/HackStudio/ProjectFile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/ProjectFile.h b/Userland/DevTools/HackStudio/ProjectFile.h
index c44362e8b0..72fc3e7a24 100644
--- a/Userland/DevTools/HackStudio/ProjectFile.h
+++ b/Userland/DevTools/HackStudio/ProjectFile.h
@@ -18,7 +18,7 @@ class ProjectFile : public RefCounted<ProjectFile> {
public:
static NonnullRefPtr<ProjectFile> construct_with_name(const String& name)
{
- return adopt(*new ProjectFile(name));
+ return adopt_ref(*new ProjectFile(name));
}
const String& name() const { return m_name; }