From be322a0d7cf863696e7c355517972f056bdc5ce1 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 11 Mar 2021 18:15:57 -0800 Subject: [PATCH] Group GncOptionMultChoiceValue::set_multiple with set_default_multiple. Better readability. --- libgnucash/app-utils/gnc-option-impl.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libgnucash/app-utils/gnc-option-impl.hpp b/libgnucash/app-utils/gnc-option-impl.hpp index edbf9e1918..9193a22ed6 100644 --- a/libgnucash/app-utils/gnc-option-impl.hpp +++ b/libgnucash/app-utils/gnc-option-impl.hpp @@ -668,13 +668,6 @@ public: throw std::invalid_argument("Value not a valid choice."); } - void set_multiple(const GncMultichoiceOptionIndexVec& indexes) - { - if (validate(indexes)) - m_value = indexes; - else - throw std::invalid_argument("One of the supplied indexes was out of range."); - } void set_default_value(const std::string& value) { auto index = find_key(value); @@ -702,6 +695,13 @@ public: throw std::invalid_argument("Value not a valid choice."); } + void set_multiple(const GncMultichoiceOptionIndexVec& indexes) + { + if (validate(indexes)) + m_value = indexes; + else + throw std::invalid_argument("One of the supplied indexes was out of range."); + } void set_default_multiple(const GncMultichoiceOptionIndexVec& indexes) { if (validate(indexes))