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 Wallet::toString()
|
||||||
{
|
{
|
||||||
std::string s;
|
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;
|
std::string currency = pair.first;
|
||||||
double amount = pair.second;
|
double amount = pair.second;
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user