diff options
Diffstat (limited to 'src/dabInput.h')
-rw-r--r-- | src/dabInput.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dabInput.h b/src/dabInput.h index e5c89da..12823b8 100644 --- a/src/dabInput.h +++ b/src/dabInput.h @@ -55,6 +55,8 @@ class DabInputBase { virtual int close() = 0; virtual ~DabInputBase() {}; + protected: + DabInputBase() {}; }; /* Wrapper class for old-style dabInputOperations inputs */ @@ -67,9 +69,6 @@ class DabInputCompatible : public DabInputBase { virtual ~DabInputCompatible() { m_ops.clean(&args); } - DabInputCompatible& operator=(const DabInputCompatible& other); - DabInputCompatible(const DabInputCompatible& other); - virtual int open(const std::string name) { return m_ops.open(args, name.c_str()); } @@ -103,6 +102,9 @@ class DabInputCompatible : public DabInputBase { virtual dabInputOperations getOpts() { return m_ops; } private: + DabInputCompatible& operator=(const DabInputCompatible& other); + DabInputCompatible(const DabInputCompatible& other); + dabInputOperations m_ops; void* args; }; |