remove Boost_Reverse_foreach

Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
Pasta 2019-07-05 12:31:08 -05:00
parent 82dcb03e35
commit ed24dbba7b

View File

@ -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)
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++;
if (counter > nWalletBackups)
{