mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Tidy up usage of std::begin, std::end
This commit is contained in:
@@ -66,10 +66,8 @@ protected:
|
||||
void SetData (int version, base_uint<Bits, Tag> const& from)
|
||||
{
|
||||
nVersion = version;
|
||||
|
||||
vchData.resize (from.size ());
|
||||
|
||||
std::copy (std::begin (from), std::end(from), std::begin (vchData));
|
||||
std::copy (from.begin(), from.end(), vchData.begin());
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user