Update changed std::pair to const

This commit is contained in:
Lev
2021-06-12 21:02:14 -05:00
parent 016d72d795
commit 5b092f9e4a
2 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ bool Wallet::containsCurrency(std::string type, double amount)
std::string Wallet::toString()
{
std::string s;
for(std::pair<std::string, double> pair : currencies)
for(std::pair<const std::string, double> pair : currencies)
{
std::string currency = pair.first;
double amount = pair.second;