summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibAudio/Loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibAudio/Loader.h')
-rw-r--r--Userland/Libraries/LibAudio/Loader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibAudio/Loader.h b/Userland/Libraries/LibAudio/Loader.h
index a4bad829c1..11d284e1df 100644
--- a/Userland/Libraries/LibAudio/Loader.h
+++ b/Userland/Libraries/LibAudio/Loader.h
@@ -51,7 +51,7 @@ public:
class Loader : public RefCounted<Loader> {
public:
- static NonnullRefPtr<Loader> create(const StringView& path) { return adopt_ref(*new Loader(path)); }
+ static NonnullRefPtr<Loader> create(StringView path) { return adopt_ref(*new Loader(path)); }
static NonnullRefPtr<Loader> create(const ByteBuffer& buffer) { return adopt_ref(*new Loader(buffer)); }
bool has_error() const { return m_plugin ? m_plugin->has_error() : true; }
@@ -78,7 +78,7 @@ public:
RefPtr<Core::File> file() const { return m_plugin ? m_plugin->file() : nullptr; }
private:
- Loader(const StringView& path);
+ Loader(StringView path);
Loader(const ByteBuffer& buffer);
mutable OwnPtr<LoaderPlugin> m_plugin;