Changeset 110 in pacpusframework for branches/2.0-beta1/src/PacpusLib/XmlConfigFile.cpp
- Timestamp:
- Jun 13, 2013, 1:43:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/src/PacpusLib/XmlConfigFile.cpp
r100 r110 75 75 _mutex.lock(); 76 76 // TODO change .tagName => .attribute(kPropertyComponentName.c_str()) 77 if (_document.documentElement().namedItem(componentSection).namedItem(component. tagName()).isNull()) {78 LOG_WARN("component " << component. tagName()<< " exists already in the document");77 if (_document.documentElement().namedItem(componentSection).namedItem(component.attribute(nameAttribute)/*.tagName()*/).isNull()) { 78 LOG_WARN("component " << component.attribute(nameAttribute)/*tagName()*/ << " exists already in the document"); 79 79 } else { 80 80 QDomNode node = _document.documentElement().namedItem(componentSection).appendChild(component); … … 92 92 QDomNode node = _document.documentElement().namedItem(componentSection).removeChild(component); 93 93 if (node.isNull()) { 94 LOG_WARN("component " << component. tagName()<< " doesn't exist in the document.");94 LOG_WARN("component " << component.attribute(nameAttribute)/*tagName()*/ << " doesn't exist in the document."); 95 95 } else { 96 96 LOG_INFO("component " << node.nodeName() << " has been removed from the section "
Note:
See TracChangeset
for help on using the changeset viewer.