Add {} to make compiler happy about switch/case.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7441 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
731ae4d4f4
commit
341862bdcf
@ -110,10 +110,12 @@ void XMLNode::readXML(io::IXMLReader *xml)
|
||||
switch (xml->getNodeType())
|
||||
{
|
||||
case io::EXN_ELEMENT:
|
||||
XMLNode* n = new XMLNode(xml);
|
||||
n->m_file_name = m_file_name;
|
||||
m_nodes.push_back(n);
|
||||
break;
|
||||
{
|
||||
XMLNode* n = new XMLNode(xml);
|
||||
n->m_file_name = m_file_name;
|
||||
m_nodes.push_back(n);
|
||||
break;
|
||||
}
|
||||
case io::EXN_ELEMENT_END:
|
||||
// End of this element found.
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user