diff options
Diffstat (limited to 'Userland/Libraries/LibAudio/WavWriter.cpp')
-rw-r--r-- | Userland/Libraries/LibAudio/WavWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibAudio/WavWriter.cpp b/Userland/Libraries/LibAudio/WavWriter.cpp index 92f98a562f..b4d7f0873e 100644 --- a/Userland/Libraries/LibAudio/WavWriter.cpp +++ b/Userland/Libraries/LibAudio/WavWriter.cpp @@ -8,7 +8,7 @@ namespace Audio { -WavWriter::WavWriter(const StringView& path, int sample_rate, int num_channels, int bits_per_sample) +WavWriter::WavWriter(StringView path, int sample_rate, int num_channels, int bits_per_sample) : m_sample_rate(sample_rate) , m_num_channels(num_channels) , m_bits_per_sample(bits_per_sample) @@ -29,7 +29,7 @@ WavWriter::~WavWriter() finalize(); } -void WavWriter::set_file(const StringView& path) +void WavWriter::set_file(StringView path) { m_file = Core::File::construct(path); if (!m_file->open(Core::OpenMode::ReadWrite)) { |