diff options
Diffstat (limited to 'Userland/Libraries/LibVideo')
-rw-r--r-- | Userland/Libraries/LibVideo/MatroskaReader.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibVideo/MatroskaReader.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibVideo/MatroskaReader.cpp b/Userland/Libraries/LibVideo/MatroskaReader.cpp index d988b3ac86..f7c0ddce14 100644 --- a/Userland/Libraries/LibVideo/MatroskaReader.cpp +++ b/Userland/Libraries/LibVideo/MatroskaReader.cpp @@ -41,7 +41,7 @@ constexpr u32 BIT_DEPTH_ID = 0x6264; constexpr u32 SIMPLE_BLOCK_ID = 0xA3; constexpr u32 TIMESTAMP_ID = 0xE7; -OwnPtr<MatroskaDocument> MatroskaReader::parse_matroska_from_file(StringView const& path) +OwnPtr<MatroskaDocument> MatroskaReader::parse_matroska_from_file(StringView path) { auto mapped_file_result = MappedFile::map(path); if (mapped_file_result.is_error()) @@ -83,7 +83,7 @@ OwnPtr<MatroskaDocument> MatroskaReader::parse() return matroska_document; } -bool MatroskaReader::parse_master_element([[maybe_unused]] StringView const& element_name, Function<bool(u64)> element_consumer) +bool MatroskaReader::parse_master_element([[maybe_unused]] StringView element_name, Function<bool(u64)> element_consumer) { auto element_data_size = m_streamer.read_variable_size_integer(); CHECK_HAS_VALUE(element_data_size); diff --git a/Userland/Libraries/LibVideo/MatroskaReader.h b/Userland/Libraries/LibVideo/MatroskaReader.h index 33d23c3dd3..29fc992e68 100644 --- a/Userland/Libraries/LibVideo/MatroskaReader.h +++ b/Userland/Libraries/LibVideo/MatroskaReader.h @@ -22,7 +22,7 @@ public: { } - static OwnPtr<MatroskaDocument> parse_matroska_from_file(StringView const& path); + static OwnPtr<MatroskaDocument> parse_matroska_from_file(StringView path); static OwnPtr<MatroskaDocument> parse_matroska_from_data(u8 const*, size_t); OwnPtr<MatroskaDocument> parse(); @@ -146,7 +146,7 @@ private: Vector<size_t> m_octets_read { 0 }; }; - bool parse_master_element(StringView const& element_name, Function<bool(u64 element_id)> element_consumer); + bool parse_master_element(StringView element_name, Function<bool(u64 element_id)> element_consumer); Optional<EBMLHeader> parse_ebml_header(); bool parse_segment_elements(MatroskaDocument&); |