git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b3f54e
)
Added assignment operator for SGCONF::OPTION.
author
Maxim Mamontov
<faust.madf@gmail.com>
Tue, 7 Jan 2014 15:48:05 +0000
(17:48 +0200)
committer
Maxim Mamontov
<faust.madf@gmail.com>
Tue, 7 Jan 2014 15:48:05 +0000
(17:48 +0200)
projects/sgconf/options.cpp
patch
|
blob
|
history
diff --git
a/projects/sgconf/options.cpp
b/projects/sgconf/options.cpp
index 6fddaf38583a4e5462a69426d5210fcc000d479a..a079e1b18f835467772b6c60e7e3e3dd89aefda2 100644
(file)
--- 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)