mirror of https://github.com/vitalif/zbackup
use the NoCopy class to make sure EnDecoder cannot be copied
parent
00e3c32152
commit
8b0846bca6
|
@ -9,7 +9,6 @@
|
|||
namespace Compression {
|
||||
|
||||
EnDecoder::EnDecoder() { }
|
||||
EnDecoder::EnDecoder(const EnDecoder&) { }
|
||||
EnDecoder::~EnDecoder() { }
|
||||
|
||||
CompressionMethod::~CompressionMethod() { }
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue