X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8569ecdc2c9368dc0fe650b901cce7b37337ffec..43fff4a2cf7da8c3a5c24633d998bf52f9cf12a2:/projects/sgconf/options.cpp diff --git a/projects/sgconf/options.cpp b/projects/sgconf/options.cpp index 6fddaf38..a079e1b1 100644 --- a/projects/sgconf/options.cpp +++ b/projects/sgconf/options.cpp @@ -66,6 +66,15 @@ OPTION::~OPTION() delete m_action; } +OPTION & OPTION::operator=(const OPTION & rhs) +{ +m_shortName = rhs.m_shortName; +m_longName = rhs.m_longName; +m_action = rhs.m_action->Clone(); +m_description = rhs.m_description; +return *this; +} + void OPTION::Help(size_t level) const { if (!m_action)