diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Libraries/LibDesktop | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Libraries/LibDesktop')
-rw-r--r-- | Userland/Libraries/LibDesktop/AppFile.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibDesktop/Launcher.cpp | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibDesktop/Launcher.h | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibDesktop/AppFile.h b/Userland/Libraries/LibDesktop/AppFile.h index 98f3af6cf0..a9f10da6fa 100644 --- a/Userland/Libraries/LibDesktop/AppFile.h +++ b/Userland/Libraries/LibDesktop/AppFile.h @@ -15,7 +15,7 @@ namespace Desktop { class AppFile : public RefCounted<AppFile> { public: - static constexpr const char* APP_FILES_DIRECTORY = "/res/apps"; + static constexpr char const* APP_FILES_DIRECTORY = "/res/apps"; static NonnullRefPtr<AppFile> get_for_app(StringView app_name); static NonnullRefPtr<AppFile> open(StringView path); static void for_each(Function<void(NonnullRefPtr<AppFile>)>, StringView directory = APP_FILES_DIRECTORY); diff --git a/Userland/Libraries/LibDesktop/Launcher.cpp b/Userland/Libraries/LibDesktop/Launcher.cpp index 62da78b5ac..fc32bb1951 100644 --- a/Userland/Libraries/LibDesktop/Launcher.cpp +++ b/Userland/Libraries/LibDesktop/Launcher.cpp @@ -14,7 +14,7 @@ namespace Desktop { -auto Launcher::Details::from_details_str(const String& details_str) -> NonnullRefPtr<Details> +auto Launcher::Details::from_details_str(String const& details_str) -> NonnullRefPtr<Details> { auto details = adopt_ref(*new Details); auto json = JsonValue::from_string(details_str).release_value_but_fixme_should_propagate_errors(); @@ -87,12 +87,12 @@ ErrorOr<void> Launcher::seal_allowlist() return {}; } -bool Launcher::open(const URL& url, const String& handler_name) +bool Launcher::open(const URL& url, String const& handler_name) { return connection().open_url(url, handler_name); } -bool Launcher::open(const URL& url, const Details& details) +bool Launcher::open(const URL& url, Details const& details) { VERIFY(details.launcher_type != LauncherType::Application); // Launcher should not be used to execute arbitrary applications return open(url, details.executable); diff --git a/Userland/Libraries/LibDesktop/Launcher.h b/Userland/Libraries/LibDesktop/Launcher.h index c62764a011..1a9229e0b1 100644 --- a/Userland/Libraries/LibDesktop/Launcher.h +++ b/Userland/Libraries/LibDesktop/Launcher.h @@ -28,7 +28,7 @@ public: String executable; LauncherType launcher_type { LauncherType::Default }; - static NonnullRefPtr<Details> from_details_str(const String&); + static NonnullRefPtr<Details> from_details_str(String const&); }; static void ensure_connection(); @@ -36,8 +36,8 @@ public: static ErrorOr<void> add_allowed_handler_with_any_url(String const& handler); static ErrorOr<void> add_allowed_handler_with_only_specific_urls(String const& handler, Vector<URL> const&); static ErrorOr<void> seal_allowlist(); - static bool open(const URL&, const String& handler_name = {}); - static bool open(const URL&, const Details& details); + static bool open(const URL&, String const& handler_name = {}); + static bool open(const URL&, Details const& details); static Vector<String> get_handlers_for_url(const URL&); static NonnullRefPtrVector<Details> get_handlers_with_details_for_url(const URL&); }; |