use the NoCopy class to make sure EnDecoder cannot be copied

master
benny 2013-10-28 00:47:46 +01:00
parent 00e3c32152
commit 8b0846bca6
2 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,6 @@
namespace Compression {
EnDecoder::EnDecoder() { }
EnDecoder::EnDecoder(const EnDecoder&) { }
EnDecoder::~EnDecoder() { }
CompressionMethod::~CompressionMethod() { }

View File

@ -6,6 +6,7 @@
#include "sptr.hh"
#include "ex.hh"
#include "nocopy.hh"
namespace Compression {
@ -15,12 +16,10 @@ DEF_EX_STR( exUnsupportedCompressionMethod, "Unsupported compression method: ",
// used for encoding or decoding
class EnDecoder
class EnDecoder: NoCopy
{
protected:
EnDecoder();
// cannot be copied
EnDecoder( const EnDecoder& );
public:
virtual ~EnDecoder();