void
ParamContext::parseAllContexts(IniFile &iniFile)
{
- list<ParamContext *>::iterator iter;
+ if (!ctxList)
+ return;
+ list<ParamContext *>::iterator iter;
for (iter = ctxList->begin(); iter != ctxList->end(); ++iter) {
ParamContext *pc = *iter;
-
pc->parseParams(iniFile);
}
}
void
ParamContext::checkAllContexts()
{
- list<ParamContext *>::iterator iter;
+ if (!ctxList)
+ return;
+ list<ParamContext *>::iterator iter;
for (iter = ctxList->begin(); iter != ctxList->end(); ++iter) {
ParamContext *pc = *iter;
-
pc->checkParams();
}
}
void
ParamContext::showAllContexts(ostream &os)
{
- list<ParamContext *>::iterator iter;
+ if (!ctxList)
+ return;
+ list<ParamContext *>::iterator iter;
for (iter = ctxList->begin(); iter != ctxList->end(); ++iter) {
ParamContext *pc = *iter;
void
ParamContext::cleanupAllContexts()
{
- list<ParamContext *>::iterator iter;
+ if (!ctxList)
+ return;
+ list<ParamContext *>::iterator iter;
for (iter = ctxList->begin(); iter != ctxList->end(); ++iter) {
ParamContext *pc = *iter;
void
ParamContext::describeAllContexts(ostream &os)
{
- list<ParamContext *>::iterator iter;
+ if (!ctxList)
+ return;
+ list<ParamContext *>::iterator iter;
for (iter = ctxList->begin(); iter != ctxList->end(); ++iter) {
ParamContext *pc = *iter;