diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-11 00:55:02 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-11 01:27:46 +0100 |
commit | 8b1108e4858f797c9216dc8ae4a3918ad50c73b4 (patch) | |
tree | ca64ba25aa735d25013d76c6d83570496c742014 /Userland/Libraries/LibAudio/WavWriter.h | |
parent | ad5d217e760c7fb73ffc0c4c827d767d6be8ec80 (diff) | |
download | serenity-8b1108e4858f797c9216dc8ae4a3918ad50c73b4.zip |
Everywhere: Pass AK::StringView by value
Diffstat (limited to 'Userland/Libraries/LibAudio/WavWriter.h')
-rw-r--r-- | Userland/Libraries/LibAudio/WavWriter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibAudio/WavWriter.h b/Userland/Libraries/LibAudio/WavWriter.h index 9a7a4a220f..555bc09cc2 100644 --- a/Userland/Libraries/LibAudio/WavWriter.h +++ b/Userland/Libraries/LibAudio/WavWriter.h @@ -13,7 +13,7 @@ namespace Audio { class WavWriter { public: - WavWriter(const StringView& path, int sample_rate = 44100, int num_channels = 2, int bits_per_sample = 16); + WavWriter(StringView path, int sample_rate = 44100, int num_channels = 2, int bits_per_sample = 16); WavWriter(int sample_rate = 44100, int num_channels = 2, int bits_per_sample = 16); ~WavWriter(); @@ -28,7 +28,7 @@ public: u16 bits_per_sample() const { return m_bits_per_sample; } RefPtr<Core::File> file() const { return m_file; } - void set_file(const StringView& path); + void set_file(StringView path); void set_num_channels(int num_channels) { m_num_channels = num_channels; } void set_sample_rate(int sample_rate) { m_sample_rate = sample_rate; } void set_bits_per_sample(int bits_per_sample) { m_bits_per_sample = bits_per_sample; } |