]> git.stg.codes - stg.git/commitdiff
Added assignment operator for SGCONF::OPTION.
authorMaxim Mamontov <faust.madf@gmail.com>
Tue, 7 Jan 2014 15:48:05 +0000 (17:48 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Tue, 7 Jan 2014 15:48:05 +0000 (17:48 +0200)
projects/sgconf/options.cpp

index 6fddaf38583a4e5462a69426d5210fcc000d479a..a079e1b18f835467772b6c60e7e3e3dd89aefda2 100644 (file)
@@ -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)