Remove boost foreach macro
[novacoin.git] / src / qt / mintingtablemodel.cpp
index 23df6cc..5f82578 100644 (file)
@@ -74,7 +74,7 @@ public:
             for(std::map<uint256, CWalletTx>::iterator it = wallet->mapWallet.begin(); it != wallet->mapWallet.end(); ++it)
             {
                 std::vector<KernelRecord> txList = KernelRecord::decomposeOutput(wallet, it->second);
-                BOOST_FOREACH(KernelRecord& kr, txList) {
+                for (KernelRecord& kr : txList) {
                     if(!kr.spent) {
                         cachedWallet.append(kr);
                     }
@@ -137,7 +137,7 @@ public:
                     if(!toInsert.empty()) /* only if something to insert */
                     {
                         int insert_idx = lowerIndex;
-                        BOOST_FOREACH(const KernelRecord &rec, toInsert)
+                        for (const KernelRecord &rec : toInsert)
                         {
                             if(!rec.spent) 
                             {
@@ -160,7 +160,7 @@ public:
                 {               
                     // Updated -- remove spent coins from table
                     std::vector<KernelRecord> toCheck = KernelRecord::decomposeOutput(wallet, mi->second);
-                    BOOST_FOREACH(const KernelRecord &rec, toCheck)
+                    for (const KernelRecord &rec : toCheck)
                     {
                         if(rec.spent)
                         {
@@ -247,7 +247,7 @@ void MintingTableModel::update()
         TRY_LOCK(wallet->cs_wallet, lockWallet);
         if (lockWallet && !wallet->vMintingWalletUpdated.empty())
         {
-            BOOST_FOREACH(uint256 hash, wallet->vMintingWalletUpdated)
+            for (uint256 hash : wallet->vMintingWalletUpdated)
             {
                 updated.append(hash);
 
@@ -255,7 +255,7 @@ void MintingTableModel::update()
                 CWalletTx wtx;
                 if(wallet->GetTransaction(hash, wtx))
                 {
-                    BOOST_FOREACH(const CTxIn& txin, wtx.vin)
+                    for (const CTxIn& txin : wtx.vin)
                     {
                         updated.append(txin.prevout.hash);
                     }