Skip to content

Commit 32b5632

Browse files
committed
Expreesively says that Cipher doesn't copy or move.
In c++14 we don't need to make copy ctor and copy assignment private. We can express that directly deleting the corresponding members.
1 parent 120cbdc commit 32b5632

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Crypto/include/Poco/Crypto/Cipher.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ class Crypto_API Cipher: public Poco::RefCountedObject
9999
ENC_BINHEX_NO_LF = 0x82, /// BinHex-encoded output, no linefeeds
100100

101101
};
102-
102+
103+
Cipher(Cipher&&) = delete;
104+
/// Expreesively says that Cipher doesn't copy or move.
105+
103106
virtual ~Cipher();
104107
/// Destroys the Cipher.
105108

@@ -128,9 +131,6 @@ class Crypto_API Cipher: public Poco::RefCountedObject
128131
Cipher();
129132
/// Creates a new Cipher object.
130133

131-
private:
132-
Cipher(const Cipher&);
133-
Cipher& operator = (const Cipher&);
134134
};
135135

136136

0 commit comments

Comments
 (0)