Re-implement accessors for payment-option(s).

This commit is contained in:
Gerhard Hoffmann 2024-01-30 10:48:05 +01:00
parent 17968082f1
commit 3a6a47725f

View File

@ -452,12 +452,18 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json)
}
}
ATBPaymentOption const &Configuration::getPaymentOptions() const {
return this->currentPaymentOptions;
return this->currentPaymentOptions.at(0);
}
ATBPaymentOption &Configuration::getPaymentOptions() {
return this->currentPaymentOptions[0];
}
QVector<ATBPaymentOption> const &Configuration::getAllPaymentOptions() const {
return this->currentPaymentOptions;
}
QVector<ATBPaymentOption> &Configuration::getAllPaymentOptions() {
return this->currentPaymentOptions;
}