diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-01 18:40:32 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-01 21:31:06 +0100 |
commit | b81f6f2c43b04a221a74880a58b1ced0cbad4a25 (patch) | |
tree | cb0d11ead67f8dc253e6a72154bb25d2effb9507 /DevTools/HackStudio/Project.cpp | |
parent | 45e0c841ad0b04cdc80e9641560a2506deeec7e6 (diff) | |
download | serenity-b81f6f2c43b04a221a74880a58b1ced0cbad4a25.zip |
HackStudio: Rename TextDocument => ProjectFile
TextDocument was not the right name, and got even more confusing with
the addition of GTextDocument in LibGUI.
Diffstat (limited to 'DevTools/HackStudio/Project.cpp')
-rw-r--r-- | DevTools/HackStudio/Project.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DevTools/HackStudio/Project.cpp b/DevTools/HackStudio/Project.cpp index f841e33d85..0cbcc67bbd 100644 --- a/DevTools/HackStudio/Project.cpp +++ b/DevTools/HackStudio/Project.cpp @@ -37,7 +37,7 @@ Project::Project(const String& path, Vector<String>&& filenames) : m_path(path) { for (auto& filename : filenames) { - m_files.append(TextDocument::construct_with_name(filename)); + m_files.append(ProjectFile::construct_with_name(filename)); } m_model = adopt(*new ProjectModel(*this)); } @@ -75,12 +75,12 @@ bool Project::add_file(const String& filename) if (!project_file->close()) return false; - m_files.append(TextDocument::construct_with_name(filename)); + m_files.append(ProjectFile::construct_with_name(filename)); m_model->update(); return true; } -TextDocument* Project::get_file(const String& filename) +ProjectFile* Project::get_file(const String& filename) { for (auto& file : m_files) { if (file.name() == filename) |