From: Maxim Mamontov Date: Tue, 7 Jan 2014 15:48:05 +0000 (+0200) Subject: Added assignment operator for SGCONF::OPTION. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/05072df6840a3e6622d235cd48e0ced723e05b26?ds=sidebyside;hp=--cc Added assignment operator for SGCONF::OPTION. --- 05072df6840a3e6622d235cd48e0ced723e05b26 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)