1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -10,13 +10,13 @@
namespace HackStudio {
Project::Project(const String& root_path)
Project::Project(String const& root_path)
: m_root_path(root_path)
{
m_model = GUI::FileSystemModel::create(root_path, GUI::FileSystemModel::Mode::FilesAndDirectories);
}
OwnPtr<Project> Project::open_with_root_path(const String& root_path)
OwnPtr<Project> Project::open_with_root_path(String const& root_path)
{
if (!Core::File::is_directory(root_path))
return {};
@ -37,7 +37,7 @@ static void traverse_model(const GUI::FileSystemModel& model, const GUI::ModelIn
}
}
void Project::for_each_text_file(Function<void(const ProjectFile&)> callback) const
void Project::for_each_text_file(Function<void(ProjectFile const&)> callback) const
{
traverse_model(model(), {}, [&](auto& index) {
auto file = create_file(model().full_path(index));
@ -45,7 +45,7 @@ void Project::for_each_text_file(Function<void(const ProjectFile&)> callback) co
});
}
NonnullRefPtr<ProjectFile> Project::create_file(const String& path) const
NonnullRefPtr<ProjectFile> Project::create_file(String const& path) const
{
auto full_path = to_absolute_path(path);
return ProjectFile::construct_with_name(full_path);