Kaydet (Commit) 76d5f993 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

downcast of address which does not point to an object of type 'XMLParentNode'

(note: object is of type 'XMLDefault'); Clang -fsanitize=undefined

Change-Id: Idaa1e30068c389ed57977d40fc90410ec9ff3665
üst 4ef1f4ae
...@@ -447,11 +447,11 @@ void XMLFile::SearchL10NElements( XMLParentNode *pCur , int pos) ...@@ -447,11 +447,11 @@ void XMLFile::SearchL10NElements( XMLParentNode *pCur , int pos)
else { else {
switch( pCur->GetNodeType()) { switch( pCur->GetNodeType()) {
case XML_NODE_TYPE_FILE: { case XML_NODE_TYPE_FILE: {
XMLParentNode* pElement; XMLChildNode* pElement;
if( GetChildList()){ if( GetChildList()){
for ( size_t i = 0; i < GetChildList()->size(); i++ ){ for ( size_t i = 0; i < GetChildList()->size(); i++ ){
pElement = (XMLParentNode*) (*GetChildList())[ i ]; pElement = (*GetChildList())[ i ];
if( pElement->GetNodeType() == XML_NODE_TYPE_ELEMENT ) SearchL10NElements( pElement , i); if( pElement->GetNodeType() == XML_NODE_TYPE_ELEMENT ) SearchL10NElements( (XMLParentNode*) pElement , i);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment