diff --git a/library/src/calculator_functions.cpp b/library/src/calculator_functions.cpp index 6a92ee3..de03763 100644 --- a/library/src/calculator_functions.cpp +++ b/library/src/calculator_functions.cpp @@ -492,12 +492,11 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg, #endif int const pop_accumulate_prices = cfg->getPaymentOptions(paymentOptionIndex).pop_accumulate_prices; - // int const pop_accumulate_durations = cfg->getPaymentOptions(paymentOptionIndex).pop_accumulate_durations; + int const pop_accumulate_durations = cfg->getPaymentOptions(paymentOptionIndex).pop_accumulate_durations; int price = 0; int new_price = 0; int durationInSecs = 0; uint32_t duration_previous = 0; - bool found = false; for (auto[itr, rangeEnd] = cfg->PaymentRate.equal_range(pop_id); itr != rangeEnd; ++itr) { int const pra_price = itr->second.pra_price;