1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 08:35:09 +00:00

HackStudio: Rename TextDocument => ProjectFile

TextDocument was not the right name, and got even more confusing with
the addition of GTextDocument in LibGUI.
This commit is contained in:
Andreas Kling 2019-11-01 18:40:32 +01:00
parent 45e0c841ad
commit b81f6f2c43
5 changed files with 15 additions and 15 deletions

View file

@ -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)