AK: Remove the fallible constructor from LittleEndianInputBitStream

This commit is contained in:
Tim Schumacher 2023-01-30 11:04:23 +01:00 committed by Linus Groh
commit 261d62438f
Notes: sideshowbarker 2024-07-17 00:41:54 +09:00
4 changed files with 18 additions and 23 deletions

View file

@ -121,12 +121,7 @@ private:
/// in little-endian order from another stream.
class LittleEndianInputBitStream : public Stream {
public:
static ErrorOr<NonnullOwnPtr<LittleEndianInputBitStream>> construct(MaybeOwned<Stream> stream)
{
return adopt_nonnull_own_or_enomem<LittleEndianInputBitStream>(new LittleEndianInputBitStream(move(stream)));
}
LittleEndianInputBitStream(MaybeOwned<Stream> stream)
explicit LittleEndianInputBitStream(MaybeOwned<Stream> stream)
: m_stream(move(stream))
{
}