Move CConfigEntry out of CConfig.

This exposes CConfigEntry to SWIG, and therefore to modperl/modpython.
This commit is contained in:
Alexey Sokolov
2011-09-07 02:09:40 +07:00
parent eb5ac35466
commit 508ca27a4c
3 changed files with 16 additions and 18 deletions

View File

@@ -22,26 +22,26 @@ struct ConfigStackEntry {
}
};
CConfig::CConfigEntry::CConfigEntry()
CConfigEntry::CConfigEntry()
: m_pSubConfig(NULL) {
}
CConfig::CConfigEntry::CConfigEntry(const CConfig& Config)
CConfigEntry::CConfigEntry(const CConfig& Config)
: m_pSubConfig(new CConfig(Config)) {
}
CConfig::CConfigEntry::CConfigEntry(const CConfigEntry& other)
CConfigEntry::CConfigEntry(const CConfigEntry& other)
: m_pSubConfig(NULL) {
if (other.m_pSubConfig)
m_pSubConfig = new CConfig(*other.m_pSubConfig);
}
CConfig::CConfigEntry::~CConfigEntry()
CConfigEntry::~CConfigEntry()
{
delete m_pSubConfig;
}
CConfig::CConfigEntry& CConfig::CConfigEntry::operator=(const CConfigEntry& other) {
CConfigEntry& CConfigEntry::operator=(const CConfigEntry& other) {
delete m_pSubConfig;
if (other.m_pSubConfig)
m_pSubConfig = new CConfig(*other.m_pSubConfig);