|
a/src/utils/conftree.h |
|
b/src/utils/conftree.h |
|
... |
|
... |
406 |
virtual int set(const string &nm, const string &val,
|
406 |
virtual int set(const string &nm, const string &val,
|
407 |
const string &sk = string())
|
407 |
const string &sk = string())
|
408 |
{
|
408 |
{
|
409 |
if (!m_ok)
|
409 |
if (!m_ok)
|
410 |
return 0;
|
410 |
return 0;
|
411 |
|
411 |
//LOGDEB2(("ConfStack::set [%s]:[%s] -> [%s]\n", sk.c_str(),
|
|
|
412 |
//nm.c_str(), val.c_str()));
|
412 |
// Avoid adding unneeded entries: if the new value matches the
|
413 |
// Avoid adding unneeded entries: if the new value matches the
|
413 |
// one out from the deeper configs, erase or dont add it
|
414 |
// one out from the deeper configs, erase or dont add it
|
414 |
// from/to the topmost file
|
415 |
// from/to the topmost file
|
415 |
typename vector<T*>::iterator it = m_confs.begin();
|
416 |
typename vector<T*>::iterator it = m_confs.begin();
|
416 |
it++;
|
417 |
it++;
|