Update changed std::pair to const
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user