diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-08-14 16:06:36 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-08-22 07:13:59 +0200 |
commit | 76d5f993e53d4cd7cdbc16e318f36b58c17ed33b (patch) | |
tree | 465f43bbc81821d4a59489684e11cdb60227c320 /l10ntools | |
parent | 4ef1f4ae499cbac7e85b03abff5c2bb31c68b90f (diff) |
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
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/xmlparse.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx index 40550bcd6e85..42030503351f 100644 --- a/l10ntools/source/xmlparse.cxx +++ b/l10ntools/source/xmlparse.cxx @@ -447,11 +447,11 @@ void XMLFile::SearchL10NElements( XMLParentNode *pCur , int pos) else { switch( pCur->GetNodeType()) { case XML_NODE_TYPE_FILE: { - XMLParentNode* pElement; + XMLChildNode* pElement; if( GetChildList()){ for ( size_t i = 0; i < GetChildList()->size(); i++ ){ - pElement = (XMLParentNode*) (*GetChildList())[ i ]; - if( pElement->GetNodeType() == XML_NODE_TYPE_ELEMENT ) SearchL10NElements( pElement , i); + pElement = (*GetChildList())[ i ]; + if( pElement->GetNodeType() == XML_NODE_TYPE_ELEMENT ) SearchL10NElements( (XMLParentNode*) pElement , i); } } } |