From 05072df6840a3e6622d235cd48e0ced723e05b26 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 7 Jan 2014 17:48:05 +0200 Subject: [PATCH] Added assignment operator for SGCONF::OPTION. --- projects/sgconf/options.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.44.2