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:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue