1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

HackStudio: Rename Project::get_file() to Project::create_file()

The function no longer looks for the already opened files, so let's
emphasize that by renaming it to `create_file`. :^)
This commit is contained in:
Karol Kosek 2021-09-08 20:36:34 +02:00 committed by Andreas Kling
parent 4a1974b174
commit d811ad921c
3 changed files with 5 additions and 5 deletions

View file

@ -26,7 +26,7 @@ public:
String name() const { return LexicalPath::basename(m_root_path); }
String root_path() const { return m_root_path; }
NonnullRefPtr<ProjectFile> get_file(const String& path) const;
NonnullRefPtr<ProjectFile> create_file(const String& path) const;
void for_each_text_file(Function<void(const ProjectFile&)>) const;