input/Proxy: use InputStreamPtr

This commit is contained in:
Max Kellermann
2017-12-26 11:37:29 +01:00
parent fb9a2c5431
commit 49619fbd77
9 changed files with 50 additions and 59 deletions

View File

@@ -21,6 +21,7 @@
#define MPD_PROXY_INPUT_STREAM_HXX
#include "InputStream.hxx"
#include "Ptr.hxx"
struct Tag;
@@ -31,11 +32,11 @@ struct Tag;
*/
class ProxyInputStream : public InputStream {
protected:
InputStream &input;
InputStreamPtr input;
public:
gcc_nonnull_all
ProxyInputStream(InputStream *_input) noexcept;
explicit ProxyInputStream(InputStreamPtr _input) noexcept;
virtual ~ProxyInputStream() noexcept;