Tidy up usage of std::begin, std::end

This commit is contained in:
Vinnie Falco
2014-12-19 08:35:26 -08:00
parent 28b70a7b9a
commit e3fbb83ad0
5 changed files with 22 additions and 16 deletions

View File

@@ -18,6 +18,7 @@
//==============================================================================
#include <ripple/crypto/Base58Data.h>
#include <algorithm>
namespace ripple {
@@ -42,7 +43,7 @@ CBase58Data::CBase58Data ()
CBase58Data::~CBase58Data ()
{
// Ensures that any potentially sensitive data is cleared from memory
std::fill (std::begin (vchData), std::end(vchData), 0);
std::fill (vchData.begin(), vchData.end(), 0);
}
bool CBase58Data::SetString (