summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibAudio/Loader.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-01-28 20:12:17 +0000
committerJelle Raaijmakers <jelle@gmta.nl>2023-01-28 22:41:36 +0100
commit3a9225608a0e223fe77981fdf6222337e0eadc1d (patch)
treee81f7e49dcc6f0758020e8558eee97f807febf04 /Userland/Libraries/LibAudio/Loader.cpp
parentee0297d9ecbf8bc63a48fb7d973d09804a8baf10 (diff)
downloadserenity-3a9225608a0e223fe77981fdf6222337e0eadc1d.zip
LibAudio: Remove `try_` prefix from fallible LoaderPlugin methods
Diffstat (limited to 'Userland/Libraries/LibAudio/Loader.cpp')
-rw-r--r--Userland/Libraries/LibAudio/Loader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibAudio/Loader.cpp b/Userland/Libraries/LibAudio/Loader.cpp
index 774103ba16..8f0065123b 100644
--- a/Userland/Libraries/LibAudio/Loader.cpp
+++ b/Userland/Libraries/LibAudio/Loader.cpp
@@ -21,7 +21,7 @@ Loader::Loader(NonnullOwnPtr<LoaderPlugin> plugin)
{
}
-Result<NonnullOwnPtr<LoaderPlugin>, LoaderError> Loader::try_create(StringView path)
+Result<NonnullOwnPtr<LoaderPlugin>, LoaderError> Loader::create_plugin(StringView path)
{
{
auto plugin = WavLoaderPlugin::create(path);
@@ -44,7 +44,7 @@ Result<NonnullOwnPtr<LoaderPlugin>, LoaderError> Loader::try_create(StringView p
return LoaderError { "No loader plugin available" };
}
-Result<NonnullOwnPtr<LoaderPlugin>, LoaderError> Loader::try_create(Bytes buffer)
+Result<NonnullOwnPtr<LoaderPlugin>, LoaderError> Loader::create_plugin(Bytes buffer)
{
{
auto plugin = WavLoaderPlugin::create(buffer);