diff options
author | Andreas Kling <kling@serenityos.org> | 2023-03-06 14:17:01 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-06 23:46:35 +0100 |
commit | 8a48246ed1a93983668a25f5b9b0af0e745e3f04 (patch) | |
tree | dd98425d119f79e0160bf19951f96a4a30276cbb /Userland/Libraries/LibDesktop | |
parent | 104be6c8ace8d56f66a89b570cdd615e74d22aa8 (diff) | |
download | serenity-8a48246ed1a93983668a25f5b9b0af0e745e3f04.zip |
Everywhere: Stop using NonnullRefPtrVector
This class had slightly confusing semantics and the added weirdness
doesn't seem worth it just so we can say "." instead of "->" when
iterating over a vector of NNRPs.
This patch replaces NonnullRefPtrVector<T> with Vector<NNRP<T>>.
Diffstat (limited to 'Userland/Libraries/LibDesktop')
-rw-r--r-- | Userland/Libraries/LibDesktop/Launcher.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibDesktop/Launcher.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibDesktop/Launcher.cpp b/Userland/Libraries/LibDesktop/Launcher.cpp index c3139156e0..de182ddfea 100644 --- a/Userland/Libraries/LibDesktop/Launcher.cpp +++ b/Userland/Libraries/LibDesktop/Launcher.cpp @@ -102,10 +102,10 @@ Vector<DeprecatedString> Launcher::get_handlers_for_url(const URL& url) return connection().get_handlers_for_url(url.to_deprecated_string()); } -auto Launcher::get_handlers_with_details_for_url(const URL& url) -> NonnullRefPtrVector<Details> +auto Launcher::get_handlers_with_details_for_url(const URL& url) -> Vector<NonnullRefPtr<Details>> { auto details = connection().get_handlers_with_details_for_url(url.to_deprecated_string()); - NonnullRefPtrVector<Details> handlers_with_details; + Vector<NonnullRefPtr<Details>> handlers_with_details; for (auto& value : details) { handlers_with_details.append(Details::from_details_str(value)); } diff --git a/Userland/Libraries/LibDesktop/Launcher.h b/Userland/Libraries/LibDesktop/Launcher.h index f49c0f96c7..82da4d402c 100644 --- a/Userland/Libraries/LibDesktop/Launcher.h +++ b/Userland/Libraries/LibDesktop/Launcher.h @@ -39,7 +39,7 @@ public: static bool open(const URL&, DeprecatedString const& handler_name = {}); static bool open(const URL&, Details const& details); static Vector<DeprecatedString> get_handlers_for_url(const URL&); - static NonnullRefPtrVector<Details> get_handlers_with_details_for_url(const URL&); + static Vector<NonnullRefPtr<Details>> get_handlers_with_details_for_url(const URL&); }; } |