diff options
author | lloyd <[email protected]> | 2010-09-13 21:50:26 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-13 21:50:26 +0000 |
commit | d34529a53979bc5be37c37f0250ad358c1f18e1c (patch) | |
tree | 912f6e3de2a55f44da147e4f187064d52ca61649 | |
parent | 4fe8a34f1869805d9115f39cad53d1fd7f7eb6c4 (diff) |
Fix examples for destroy being renamed clear
-rw-r--r-- | doc/examples/new_engine.cpp | 2 | ||||
-rw-r--r-- | doc/examples/rng_test.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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<byte> decode_hex(const std::string& in) } catch(std::exception& e) { - result.destroy(); + result.clear(); } return result; } |