From 16d5e29531c0f383dc5d2622a4167d7995f3bf85 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Wed, 18 Feb 2009 15:53:59 +0100 Subject: introduce Uncopyable class --- dxr3audiodecoder.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dxr3audiodecoder.h') diff --git a/dxr3audiodecoder.h b/dxr3audiodecoder.h index fd9dc6b..f2063b9 100644 --- a/dxr3audiodecoder.h +++ b/dxr3audiodecoder.h @@ -29,11 +29,11 @@ #include "dxr3ffmpeg.h" #include "dxr3syncbuffer.h" #include "dxr3multichannelaudio.h" +#include "Uncopyable.h" // ================================== // decode audio to mp2 or use DD :) -class cDxr3AudioDecoder -{ +class cDxr3AudioDecoder : private Uncopyable { public: cDxr3AudioDecoder(); ~cDxr3AudioDecoder(); @@ -72,8 +72,6 @@ private: int channels; uint8_t lastHeader[4]; uint8_t pcmbuf[AVCODEC_MAX_AUDIO_FRAME_SIZE]; - - cDxr3AudioDecoder(cDxr3AudioDecoder&); // no copy constructor }; #endif /*_DXR3_AUDIODECODER_H_*/ -- cgit v1.2.3