diff options
author | lloyd <[email protected]> | 2012-07-10 21:13:06 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-07-10 21:13:06 +0000 |
commit | 3a33e128961e7ea4bd584639ba393d056bec3d23 (patch) | |
tree | a1ad9cb2ca67541a90a61b0723c7040191484356 /src/block | |
parent | 0e718e402cb58c5ccfe538dfe36962c73a223d3a (diff) |
Add deleted copy constructors/assignment operators where appropriate.
Replace C++98 style private copy constructors/assignment ops with ones
annotated with delete.
Diffstat (limited to 'src/block')
-rw-r--r-- | src/block/cascade/cascade.h | 3 | ||||
-rw-r--r-- | src/block/lion/lion.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/block/cascade/cascade.h b/src/block/cascade/cascade.h index b1376e2e0..9b7d44fdf 100644 --- a/src/block/cascade/cascade.h +++ b/src/block/cascade/cascade.h @@ -40,6 +40,9 @@ class BOTAN_DLL Cascade_Cipher : public BlockCipher */ Cascade_Cipher(BlockCipher* cipher1, BlockCipher* cipher2); + Cascade_Cipher(const Cascade_Cipher&) = delete; + Cascade_Cipher& operator=(const Cascade_Cipher&) = delete; + ~Cascade_Cipher(); private: void key_schedule(const byte[], size_t); diff --git a/src/block/lion/lion.h b/src/block/lion/lion.h index d016c0e82..37aad19f2 100644 --- a/src/block/lion/lion.h +++ b/src/block/lion/lion.h @@ -48,6 +48,9 @@ class BOTAN_DLL Lion : public BlockCipher StreamCipher* cipher, size_t block_size); + Lion(const Lion&) = delete; + Lion& operator=(const Lion&) = delete; + ~Lion() { delete hash; delete cipher; } private: void key_schedule(const byte[], size_t); |