From d34529a53979bc5be37c37f0250ad358c1f18e1c Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 13 Sep 2010 21:50:26 +0000 Subject: Fix examples for destroy being renamed clear --- doc/examples/new_engine.cpp | 2 +- doc/examples/rng_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/examples') diff --git a/doc/examples/new_engine.cpp b/doc/examples/new_engine.cpp index 2f412a6b9..6c7bc340a 100644 --- a/doc/examples/new_engine.cpp +++ b/doc/examples/new_engine.cpp @@ -13,7 +13,7 @@ using namespace Botan; class XOR_Cipher : public StreamCipher { public: - void clear() throw() { mask.destroy(); mask_pos = 0; } + void clear() throw() { mask.clear(); mask_pos = 0; } // what we want to call this cipher std::string name() const { return "XOR"; } diff --git a/doc/examples/rng_test.cpp b/doc/examples/rng_test.cpp index 3d96b7a42..f630d1c5a 100644 --- a/doc/examples/rng_test.cpp +++ b/doc/examples/rng_test.cpp @@ -29,7 +29,7 @@ SecureVector decode_hex(const std::string& in) } catch(std::exception& e) { - result.destroy(); + result.clear(); } return result; } -- cgit v1.2.3