mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:57:34 +00:00
LibAudio: Remove try_
prefix from fallible LoaderPlugin methods
This commit is contained in:
parent
ee0297d9ec
commit
3a9225608a
2 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue