mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
fix the unit tests that didn't work on some compilers handling static cast of enums in a weird way
This commit is contained in:
@@ -465,18 +465,19 @@ void XmlIoRapid::save(const string &path, const XmlNode *node){
|
|||||||
// =====================================================
|
// =====================================================
|
||||||
XmlTree::XmlTree(xml_engine_parser_type engine_type) {
|
XmlTree::XmlTree(xml_engine_parser_type engine_type) {
|
||||||
rootNode= NULL;
|
rootNode= NULL;
|
||||||
this->engine_type = engine_type;
|
|
||||||
this->skipStackCheck = false;
|
|
||||||
|
|
||||||
switch(this->engine_type) {
|
switch(engine_type) {
|
||||||
case XML_XERCES_ENGINE:
|
case XML_XERCES_ENGINE:
|
||||||
break;
|
break;
|
||||||
case XML_RAPIDXML_ENGINE:
|
case XML_RAPIDXML_ENGINE:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw megaglest_runtime_error("Invalid XML parser engine: " + intToStr(this->engine_type));
|
throw megaglest_runtime_error("Invalid XML parser engine: " + intToStr(engine_type));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this->engine_type = engine_type;
|
||||||
|
this->skipStackCheck = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void XmlTree::init(const string &name){
|
void XmlTree::init(const string &name){
|
||||||
|
Reference in New Issue
Block a user