aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-30 16:47:39 +0000
committerlloyd <[email protected]>2008-09-30 16:47:39 +0000
commit800897848c64ac575984a7b38e07111d97ec8670 (patch)
treec60918911bad7c053d829e99520346406be7e58f /src
parent25e8861ab9fe4d2cdaf14d52273c88a1bf265855 (diff)
Remove warnings in KDF1, KDF2 copy constructors
Diffstat (limited to 'src')
-rw-r--r--src/kdf/kdf1/kdf1.h2
-rw-r--r--src/kdf/kdf2/kdf2.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/kdf/kdf1/kdf1.h b/src/kdf/kdf1/kdf1.h
index 6a4b0f113..1c1fd7839 100644
--- a/src/kdf/kdf1/kdf1.h
+++ b/src/kdf/kdf1/kdf1.h
@@ -22,7 +22,7 @@ class BOTAN_DLL KDF1 : public KDF
const byte P[], u32bit P_len) const;
KDF1(HashFunction* h) : hash(h) {}
- KDF1(const KDF1& other) : hash(other.hash->clone()) {}
+ KDF1(const KDF1& other) : KDF(), hash(other.hash->clone()) {}
~KDF1() { delete hash; }
private:
diff --git a/src/kdf/kdf2/kdf2.h b/src/kdf/kdf2/kdf2.h
index 33db36ad4..844057ab3 100644
--- a/src/kdf/kdf2/kdf2.h
+++ b/src/kdf/kdf2/kdf2.h
@@ -21,7 +21,7 @@ class BOTAN_DLL KDF2 : public KDF
const byte[], u32bit) const;
KDF2(HashFunction* h) : hash(h) {}
- KDF2(const KDF2& other) : hash(other.hash->clone()) {}
+ KDF2(const KDF2& other) : KDF(), hash(other.hash->clone()) {}
~KDF2() { delete hash; }
private:
HashFunction* hash;