decoder/Reader: change Decoder pointer to reference

This commit is contained in:
Max Kellermann 2016-05-13 10:40:10 +02:00
parent e8fd771b91
commit 958506a108
2 changed files with 2 additions and 5 deletions

View File

@ -24,5 +24,5 @@
size_t
DecoderReader::Read(void *data, size_t size)
{
return decoder_read(decoder, is, data, size);
return decoder_read(&decoder, is, data, size);
}

View File

@ -32,14 +32,11 @@ class InputStream;
* interface.
*/
class DecoderReader final : public Reader {
Decoder *const decoder;
Decoder &decoder;
InputStream &is;
public:
DecoderReader(Decoder &_decoder, InputStream &_is)
:decoder(&_decoder), is(_is) {}
DecoderReader(Decoder *_decoder, InputStream &_is)
:decoder(_decoder), is(_is) {}
/* virtual methods from class Reader */