diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/FileIconProvider.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/FileIconProvider.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibGUI/FileIconProvider.cpp b/Userland/Libraries/LibGUI/FileIconProvider.cpp index 821af95491..495cae5b3f 100644 --- a/Userland/Libraries/LibGUI/FileIconProvider.cpp +++ b/Userland/Libraries/LibGUI/FileIconProvider.cpp @@ -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 == "/") |