mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 17:59:48 +02:00
problems found by coverity
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user