mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
remove Boost_Reverse_foreach
Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
82dcb03e35
commit
ed24dbba7b
@ -5232,8 +5232,8 @@ bool AutoBackupWallet(CWallet* wallet, const std::string& strWalletFile_, std::s
|
|||||||
|
|
||||||
// Loop backward through backup files and keep the N newest ones (1 <= N <= 10)
|
// Loop backward through backup files and keep the N newest ones (1 <= N <= 10)
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
BOOST_REVERSE_FOREACH(std::pair<const std::time_t, fs::path> file, folder_set)
|
for(auto it = folder_set.rbegin(); it != folder_set.rend(); ++it) {
|
||||||
{
|
std::pair<const std::time_t, fs::path> file = *it;
|
||||||
counter++;
|
counter++;
|
||||||
if (counter > nWalletBackups)
|
if (counter > nWalletBackups)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user