problems found by coverity

This commit is contained in:
titiger
2014-11-10 21:53:10 +01:00
parent 49e55209da
commit d21f7bd976
2 changed files with 7 additions and 5 deletions

View File

@@ -705,15 +705,15 @@ XmlNode::XmlNode(xml_node<> *node, const std::map<string,string> &mapTagReplacem
if(node->type() == node_element && children.size() == 0) {
string xmlText = node->value();
bool debugReplace = false;
// bool debugReplace = false;
// if(xmlText.find("{SCENARIOPATH}") != string::npos) {
// printf("\n----------------------\n** XML!! WILL REPLACE [%s]\n",xmlText.c_str());
// debugReplace = true;
// }
Properties::applyTagsToValue(xmlText,&mapTagReplacementValues, skipUpdatePathClimbingParts);
if(debugReplace) {
printf("\n\n** XML!! REPLACED WITH [%s]\n===================\n",xmlText.c_str());
}
// if(debugReplace) {
// printf("\n\n** XML!! REPLACED WITH [%s]\n===================\n",xmlText.c_str());
// }
text = xmlText;
}
}