mirror of
https://github.com/znc/znc.git
synced 2026-05-03 03:52:33 +02:00
Move CConfigEntry out of CConfig.
This exposes CConfigEntry to SWIG, and therefore to modperl/modpython.
This commit is contained in:
10
Config.cpp
10
Config.cpp
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user