Cleanup
[novacoin.git] / src / qt / walletmodel.cpp
index 47b12e9..a185ed3 100644 (file)
@@ -495,11 +495,11 @@ void WalletModel::listCoins(std::map<QString, std::vector<COutput> >& mapCoins)
             cout = COutput(&wallet->mapWallet[cout.tx->vin[0].prevout.hash], cout.tx->vin[0].prevout.n, 0, true);
         }
 
-        std::string address;
-        if(!out.fSpendable || !wallet->ExtractAddress(cout.tx->vout[cout.i].scriptPubKey, address))
+        CBitcoinAddress addressRet;
+        if(!out.fSpendable || !wallet->ExtractAddress(cout.tx->vout[cout.i].scriptPubKey, addressRet))
             continue;
 
-        mapCoins[address.c_str()].push_back(out);
+        mapCoins[addressRet.ToString().c_str()].push_back(out);
     }
 }