mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Refactor: remove extra template parameter from member functions
This commit is contained in:
parent
87c52f53fa
commit
1b0af4246a
@ -85,21 +85,21 @@ template <typename ValueType>
|
|||||||
class GncOptionValue : public OptionClassifier
|
class GncOptionValue : public OptionClassifier
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GncOptionValue<ValueType>(const char* section, const char* name,
|
GncOptionValue(const char* section, const char* name,
|
||||||
const char* key, const char* doc_string,
|
const char* key, const char* doc_string,
|
||||||
ValueType value,
|
ValueType value,
|
||||||
GncOptionUIType ui_type = GncOptionUIType::INTERNAL) :
|
GncOptionUIType ui_type = GncOptionUIType::INTERNAL) :
|
||||||
OptionClassifier{section, name, key, doc_string},
|
OptionClassifier{section, name, key, doc_string},
|
||||||
m_ui_type(ui_type), m_value{value}, m_default_value{value} { }
|
m_ui_type(ui_type), m_value{value}, m_default_value{value} { }
|
||||||
GncOptionValue<ValueType>(const GncOptionValue<ValueType>& from) :
|
GncOptionValue(const GncOptionValue& from) :
|
||||||
OptionClassifier{from.m_section, from.m_name, from.m_sort_tag,
|
OptionClassifier{from.m_section, from.m_name, from.m_sort_tag,
|
||||||
from.m_doc_string},
|
from.m_doc_string},
|
||||||
m_ui_type(from.get_ui_type()), m_value{from.get_value()},
|
m_ui_type(from.get_ui_type()), m_value{from.get_value()},
|
||||||
m_default_value{from.get_default_value()}{}
|
m_default_value{from.get_default_value()}{}
|
||||||
GncOptionValue<ValueType>(GncOptionValue<ValueType>&&) = default;
|
GncOptionValue(GncOptionValue&&) = default;
|
||||||
GncOptionValue<ValueType>& operator=(const GncOptionValue<ValueType>&) = default;
|
GncOptionValue& operator=(const GncOptionValue&) = default;
|
||||||
GncOptionValue<ValueType>& operator=(GncOptionValue<ValueType>&&) = default;
|
GncOptionValue& operator=(GncOptionValue&&) = default;
|
||||||
~GncOptionValue<ValueType>() = default;
|
~GncOptionValue() = default;
|
||||||
ValueType get_value() const { return m_value; }
|
ValueType get_value() const { return m_value; }
|
||||||
ValueType get_default_value() const { return m_default_value; }
|
ValueType get_default_value() const { return m_default_value; }
|
||||||
void set_value(ValueType new_value);
|
void set_value(ValueType new_value);
|
||||||
|
Loading…
Reference in New Issue
Block a user