1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38: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

@ -129,7 +129,7 @@ Icon FileIconProvider::filetype_image_icon()
return s_filetype_image_icon;
}
Icon FileIconProvider::icon_for_path(const String& path)
Icon FileIconProvider::icon_for_path(String const& path)
{
struct stat stat;
if (::stat(path.characters(), &stat) < 0)
@ -137,7 +137,7 @@ Icon FileIconProvider::icon_for_path(const String& path)
return icon_for_path(path, stat.st_mode);
}
Icon FileIconProvider::icon_for_executable(const String& path)
Icon FileIconProvider::icon_for_executable(String const& path)
{
static HashMap<String, Icon> app_icon_cache;
@ -167,7 +167,7 @@ Icon FileIconProvider::icon_for_executable(const String& path)
return s_executable_icon;
}
auto image = ELF::Image((const u8*)mapped_file->data(), mapped_file->size());
auto image = ELF::Image((u8 const*)mapped_file->data(), mapped_file->size());
if (!image.is_valid()) {
app_icon_cache.set(path, s_executable_icon);
return s_executable_icon;
@ -176,7 +176,7 @@ Icon FileIconProvider::icon_for_executable(const String& path)
// If any of the required sections are missing then use the defaults
Icon icon;
struct IconSection {
const char* section_name;
char const* section_name;
int image_size;
};
@ -186,7 +186,7 @@ Icon FileIconProvider::icon_for_executable(const String& path)
};
bool had_error = false;
for (const auto& icon_section : icon_sections) {
for (auto const& icon_section : icon_sections) {
auto section = image.lookup_section(icon_section.section_name);
RefPtr<Gfx::Bitmap> bitmap;
@ -217,7 +217,7 @@ Icon FileIconProvider::icon_for_executable(const String& path)
return icon;
}
Icon FileIconProvider::icon_for_path(const String& path, mode_t mode)
Icon FileIconProvider::icon_for_path(String const& path, mode_t mode)
{
initialize_if_needed();
if (path == "/")