From 5132476a2f5f51e5a8a368a6badd7dd36b62e76b Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Mon, 1 Apr 2024 15:21:31 -0500 Subject: [PATCH] Allow building with c++20 and greater/ --- libgnucash/engine/gnc-option-impl.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libgnucash/engine/gnc-option-impl.hpp b/libgnucash/engine/gnc-option-impl.hpp index 3842fc2c68..53d010fb3b 100644 --- a/libgnucash/engine/gnc-option-impl.hpp +++ b/libgnucash/engine/gnc-option-impl.hpp @@ -396,13 +396,13 @@ template class GncOptionRangeValue : public OptionClassifier { public: - GncOptionRangeValue(const char* section, const char* name, + GncOptionRangeValue(const char* section, const char* name, const char* key, const char* doc_string, ValueType value, ValueType min, ValueType max, ValueType step) : GncOptionRangeValue{section, name, key, doc_string, value, min, max, step, GncOptionUIType::NUMBER_RANGE} {} - GncOptionRangeValue(const char* section, const char* name, + GncOptionRangeValue(const char* section, const char* name, const char* key, const char* doc_string, ValueType value, ValueType min, ValueType max, ValueType step, GncOptionUIType ui) : @@ -412,8 +412,8 @@ public: m_min{min}, m_max{max}, m_step{step} { if constexpr(is_same_decayed_v) set_alternate(true);} - GncOptionRangeValue(const GncOptionRangeValue&) = default; - GncOptionRangeValue(GncOptionRangeValue&&) = default; + GncOptionRangeValue(const GncOptionRangeValue&) = default; + GncOptionRangeValue(GncOptionRangeValue&&) = default; GncOptionRangeValue& operator=(const GncOptionRangeValue&) = default; GncOptionRangeValue& operator=(GncOptionRangeValue&&) = default; ValueType get_value() const { return m_value; }