From e9b10166d2b3e974973c65ea5e9321ab81f610d2 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 22 Jan 2024 13:33:23 +0100 Subject: [PATCH] Minor: implement getPaymentOptions() for const. Add getPaymentOptions() for non-const --- library/src/configuration.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/library/src/configuration.cpp b/library/src/configuration.cpp index 5946521..7073051 100644 --- a/library/src/configuration.cpp +++ b/library/src/configuration.cpp @@ -442,7 +442,10 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json) -const ATBPaymentOption & Configuration::getPaymentOptions() -{ +ATBPaymentOption const &Configuration::getPaymentOptions() const { + return this->currentPaymentOptions; +} + +ATBPaymentOption &Configuration::getPaymentOptions() { return this->currentPaymentOptions; }